yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam ROM Development] booda:
Hey Rob,

Fantastic app. I was using a combination of a custom Extended ROM, settings cabs and exported reg keys to do restores, but this makes it a lot easier. Since I already had cabs for most of my settings, I skipped the supplied config files and made my own for the handful of reg keys I needed; worked great.

I'm happy to report that using the /silent option for cab installation worked fine. Any apps that needed user input (to agree to EULAs, etc) popped up the windows when necessary. Otherwise everything just worked away invisibly in the background.

I also experimented with taking the _setup.xml files from my custom settings cabs and importing them on the Prov tab; this also worked perfectly. If you can figure out how to implement/automate this through the config function that would be nice. I'd rather just edit my xml files when necessary without having to worry about importing them or making cabs out of them.

Again, great work. Although it's just making it easier for me to continue my flashing-new-ROMs addiction; not sure that's a good thing!

Just name them so they're in the order you want, by appending numbers to the beginning of the file name. They'll install in that order.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Thanks to answer, makes sense.
[8525, TyTN, MDA Vario II, JasJam ROM Development] p.loong:
I have try this it's did't works,and by the way to rename it on hermes or pc?
[8525, TyTN, MDA Vario II, JasJam ROM Development] booda:
Works perfectly for me; doesn't matter if you rename them on the PC or the device. Make sure you're using two-digit numbers (01 instead of 1).

If you do a sort by file name in Explorer, that's the order the cabs should install in.
[8525, TyTN, MDA Vario II, JasJam ROM Development] p.loong:
Yes it works,Thanks
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
dny238

Hey Rob, I followed your instructions on build an application for your program.

Can you look it over and tell me if it looks right to you.

Thanks

I tried to put it into the config and run program and I am getting a message saying that it could not parse the file?
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I just checked the code and the packages aren't in any particular order. I sorted the list, so the next version will be alphabetical. Therefore you could put a z in front of the name like this "zzzPackageName.cab" if you want one to go last.

On 'Silently Install Cabs" a few of mine which were supposed to restart didn't. Know now if this always works or not.

I'll have to play around with Email2.xml. So far I've just restored them and keyed in my password once. The XML stuff is pretty new and I haven't figured all those issues out yet.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Thanks for your reply, wait until you see the mess I made of the xml file that I left for you to see, I am going to work on it a little more tonight, hopefully I can get somewhere, any suggestions let me know.
[8525, TyTN, MDA Vario II, JasJam ROM Development] booda:
Lurch, you're missing an opening <RegKey> tag in your second entry - SkyscapeDeviceVars.reg. Also, the file wasn't in UTF-8; open it up in Notepad and resave it, but change the encoding to UTF-8 (under the Save As dialog box).
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Changes made, I thought it had to be saved as unicode, learn something new everyday, and today many new things, thanks for your help.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Dude, that's a ton of keys in that file.

Here's what I changed to make it open up in IE.

First I removed the 'encoding' section from the top.

Second you missed an open <regkey> on your second reg.

Replace the top of the file with this version and see if it will work, I didn't test it.

<?xml version="1.0" ?>

<BackupPackage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.cpandl.com">

<PackageName>Skyscape Programs(Beta)</PackageName>

<PackageDescription>Programs</PackageDescription>

<PackagePath>Skyscape</PackagePath>

<PackageAuthor>Sean Adams</PackageAuthor>

<PackageVersion>1</PackageVersion>

<Keys>

<RegKey>

<RegFile>Skyscape.reg</RegFile>

<KeyPath>HKEY_LOCAL_MACHINE\Software\Skyscape</KeyPath>

</RegKey>

<RegKey>

<RegFile>SkyscapeDeviceVars.reg</RegFile>

<KeyPath>HKEY_LOCAL_MACHINE\Software\Skyscape\DeviceVars</KeyPath>

</RegKey>
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Wow! just got it. That's very cool. Many thanks!

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] walshieau:
do you have the Original ROM that came with your Phone?? id be interested in looking at the ExtROM at their configuration...
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I checked the code and it's not sorting the files alphabetically in 0.92. I did that for 0.93. I think it's probably taking the files in some sort of arbitrary newest to oldest order or something.

The next version will really fix this with the alpha sort, so go ahead and change their names and cross your fingers. If you turn on the autoinstall I bet things will work better too.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] booda:
You could probably use Unicode if you changed the xml header to <?xml version="1.0" encoding="unicode" ?>, or just dropped the encoding bit entirely like dny238 did. The problem arises when the xml header specifies one encoding and the file is saved in another.

An easy way to check is to just open the xml in IE. If there's an encoding mismatch, it will throw up an error message and refuse to display the code.
[8525, TyTN, MDA Vario II, JasJam ROM Development] booda:
Using numerical prefixes, my cabs install in order using 0.92 - definitely not arbitrary or newest-oldest. :confused: I've done three hard resets/restores playing with various things, and it worked that way every time.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Thanks for the edit, loaded and save without a problem, I am working nights now for a couple of days so I will check the registry soon and do a comparison. Did you mention in another post a program that you used to compare registry entries, thought I seen one but I am unable to locate, I will keep looking, thanks for your help. Didn't think that all the subkeys would follow.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Hey Walshieau

I have a cingular 8525 that I bought in the USA and unlocked. I have never used cingular, as soon as I received the phone I inputted my settings for Rogers Canada, the old ROM that was on there was the 1.34.502.1 09/21/06 ROM from HTC for the 8525. I doubt that helps, but you never know.
[8525, TyTN, MDA Vario II, JasJam ROM Development] walshieau:
where did you get the Rogers Settings from?
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
version 0.93

1) Sorted the packages upon import, they should definately load in alphabetical order now. Not sure what order it took them in before.

2) Added basic Provisioning XML support into the config file format.

<Provs>

<ProvXML>

<ProvFile>Email2.xml</ProvFile>

<Characteristic>EMAIL2</Characteristic>

</ProvXML>

</Provs>

Backing up will create the Email2.xml file in the backup directory or will overwrite the which is already there.

Restoring it will load it into the device.

3) Updated General.xml to use the above Provisioning XML.

4) Few other minor fixes.

I wanted to take a minute to thank everyone for their encouragement. This has been a fun project to work on.

Enjoy!

Rob

Download it here
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Cool! With this tool I can flash my phone and recover within about 20 minutes.

I use WinMerge to compare the befores and afters. http://winmerge.org/

For some reason I occasionally have to open the reg files in notepad, add a space to them and then close them again for WinMerge to be able to compare them. Probably has something to do with the way I'm writing the files. WinMerge doesn't see them as text files.

The registry compares are easier than the file system. I had to make note of files I couldn't open because it's possible that they are still changing, so there is alot of 'chaff' in those comparisions.

Thanks,

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
cool, it will sort alphabetically from .93 and on.

Glad it's working for you.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] fireball2k:
On German ROMs, "Storage Card" is named "Speicherkarte" - so SettingsSaviour won't start at all - maybe you could fix this?
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Got them from Rogers website, I had to do a search on Rogers site. I also confired them following by doing a google search. I used to put them in manually until you (Walshieau) made the config xml tool, I used one of the config files that you made for another carrier that were simular to my own and edited them with my settings. Once I had the xml file and it worked with your tool I made the file into a cab file for easy installation and storage. Everything worked great except that I couldn't get the WAP version correct and I had to manually change it until you told me what to change.

All settings work perfect including send and receive MMS, I know that alot of people have had trouble with the MMS that are on rogers.

If there is anything else let me know.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Absolutely, anyone happen to know the function call to get the name of the card? I think I saw that I could loop through all the cards (some devices have more than one?) and therefore could get there programatically.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] todd_jg:
Don't know the function call, but the multiple storage card thing is due to how it determines what is a "card". The ExtROM and Bluetooth file shares are displayed as "cards", for example. Really, it is any storage that is not Main Storage.
[8525, TyTN, MDA Vario II, JasJam ROM Development] DvTonder:
Original post deleted - I made a mistake installing
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
dny238

I figured out the password path for Email2, I have tested it and it works great.

I place the following under the <parm name="AUTHNAME" value="username" /> value and put my password in where it says (your password here)

<parm name="AUTHSECRET" value="your password here" />

I am sure that you can put this into your provisional Email2 xml, another thing you don't have to enter.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
So you've hit on the puzzle. Do I build a way to query the users for this type of information when you backup their system? or when they do a restore?

You can manually edit the files and add that if you want.

I can't get my head around the problem.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
This isn't an issue for me as I made the XML file into a cab as my settings are not going to change. If you were going to build something in I would just do what is easiest. I know that you were looking for the path so I found it and thought I would share, the least that I can do with all the work that you have put into this.

As far as my application project I have made a few more configs for different programs, I have to still compare registry settings when I have time, but it seems to have pulled the appropriate reg files with the backup.

When I have confirmed that they work I will send the ones to you that the general public would generally use like O2Plus, ABD weather and AgendaFusion. The Skyscape one that you helped me with isn't a popular program just the biggest that I had with the most reg entries, I knew that if I could figure that one out the rest would be much simpler.

I will keep you informed.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Try using this new version, see if it works right.

Version 0.94

Only difference is a function to figure out the name of the /Storage Card/ directory. Still saves the program into a subfolder called Program Files/SettingsSavior

Let me know if it works.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
DNY238

Hey Rob, alright I have made configs of all of my apps. Seems like the registry values are the same, what is the best way to test each application. Do I have to hard reset and test each one indiviually or is there an easier way?
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
That is what I do. Wait until I have some time to flash my rom a few times.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Alright I will wait, but what am I waiting for or is it a secret still.
[8525, TyTN, MDA Vario II, JasJam ROM Development] saeba:
This is one terrific application! I was trying to do part of this by using autorun to install cabs, but this is so much better :-)!

A few odds and ends I still have to manually set:

Settings -> System -> About -> Device ID -> Device Name and Description

Settings -> System -> Clock & Alarms -> Alarms (set wakeup alarm)

Settings -> System -> Screen -> ClearType (turn on)

Settings -> Personal -> Today -> Appearance (theme selection)

Settings -> Personal -> Sounds & Notifications -> Notifications (turn off connection established message)

Settings -> Personal -> Menus (set items on start menu)

If you could snapshot those areas as well... :-)!!

Thanks!
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
I am working on it, I will upload the changed General settings config soon. Hope you don't mind Rob.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Here is the new General settings config.

Unzip and copy the attached file (1generalsettings) to

Program Files\SettingsSavior\Configs

It will replace the old (1generalsettings) file. Backup again and the settings that you listed will be saved.

saeba

Let me know if I missed anything, I don't think I did. The only one that was hard to find was the cleartype. I had to enable on my device and compare old and new registries. When you select it there is a new registry entry that I couldn't find before I enabled it.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I'll look at them, if you want to help me you could do this.

1) Start over with your device, flash it and restore whatever settings actually restore.

2) Take a Reg and File snapshot in the Tools section of Savior. (Before snaps)

3) Fix up the settings I missed.

4) Take another set of snapshots (After Snaps)

5) Send me a private message with them in it and I'll run them through WinMerge to see what else I need to add.

This is what i have to do, so if you want to it'll save me some time, and we'll know I got all that you care about.

Thanks,

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Sorry, I wasn't clear. i was trying to say that I have to flash my rom to test too. This is obviously something I wait until I have an evening to set everything up again or over a weekend.

SettingsSavior has made setting the device back up much easier. But it still take some chronological time.

The best way to test it to start over from scratch and then test the restore.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Thanks Lurch. I'll test your file and replace the one in the install with it if it works well for me.

The whole reason I exposed the Config xml's in the first place was so that people can make edits and create their own.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
All of the settings that he mentioned seemed like settings that everybody would have to of changed manually, made sense to use them.
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
Found this here http://xdaforums.com/showthread.php?t=308911&page=4

y2whisper

"tried it out...couldn't restore my settings with settings saviour .93 or load any tweaks with htc custom 1.4.

both programs crash when you try to restore, or hit save on htc custom

Edit: settings saviour just doesn't like the install cabs feature...guessing its a security setting"

Any ideas Rob, I was going to suggest silent install cabs but I am not sure if that would solve his problems. I have not tried yet with a different ROM yet.
[8525, TyTN, MDA Vario II, JasJam ROM Development] saeba:
WOW :-)! Thanks so much. Testing it out now :-)!
[8525, TyTN, MDA Vario II, JasJam ROM Development] saeba:
OK. The following are now saved and restored:

Settings -> System -> Clock & Alarms -> Alarms (set wakeup alarm)

Settings -> System -> Screen -> ClearType (turn on)

Settings -> Personal -> Sounds & Notifications -> Notifications (turn off connection established message)

The following are saved and made registry changes on the restore, but didn't override the default appearance. I did verify that the settings were made. Weird ???

Settings -> Personal -> Today -> Appearance (theme selection)

Settings -> Personal -> Menus (set items on start menu)

And the last one:

Settings -> System -> About -> Device ID -> Device Name and Description

I didn't see it in the new 1generalsettings file, so I added the following to it:

<RegKey>

<RegFile>Ident.reg</RegFile>

<KeyPath>HKEY_LOCAL_MACHINE\Ident</KeyPath>

</RegKey>

And then that's working :-).

My install/setup has gotten dramatically easier. Thanks!!!
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
Nice work!

I'll look at the last two items you couldn't work out. feel free to send me the before and after diffs if you have time to create them.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I tried out this rom and there are some security settings which are a bit high. I also wasn't using 'Silent Cabs' so i was prompted for a security warning for any unsigned cabs. It also wasn't able to restore my docs completely due to permissions problems with the template directory. Other than that, it worked. So I'm not sure what the problem was.

Thanks for letting me know.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I ran the before and afters..... here are the results.....

[HKEY_CURRENT_USER\Software\Microsoft\Today]

"Restriction"=dword:00000002

"Skin"="\\windows\\Guava Bubbles.tsk" <-----------------------------

"UseStartImage"=dword:00000001

The Appearance seems to be saved here. There was also a new tmp file which I hope isn't important

\Windows\AppMgr\Microsoft Guava Bubbles\3001.tmp

I'd try just backing up that top key, if we aren't already and seeing if that works.

The start menu is going to require coding to do right. You could try to backup /Windows/Start Menu but I think that's a bad call. The system moves files between /Windows/Start Menu and /Windows/Start Menu/Programs if we just back them up, when they restore we'll have some icons in to places. You could try backing up /Windows/Start Menu, but I wouldn't recommend it. I think i'll alter the code so that if it sees that we are telling it to backup /Windows/Start Menu, it looks through the shortcuts and moves them around as necessary to match the backed up version. I'll see if I can spend some time on it tomorrow.

Thanks,

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] saeba:
On the theme...

Yes, Lurch3559 added the following to 1General Settings.xml to pick that up:

<RegKey>

<RegFile>ThemeAndSoftkeys.reg</RegFile>

<KeyPath>HKEY_CURRENT_USER\Software\Microsoft\Today</KeyPath>

</RegKey>

And the file (ThemeAndSoftkeys.reg) does then contain it:

[HKEY_CURRENT_USER\Software\Microsoft\Today]

"Restriction"=dword:00000002

"Skin"="\\My Documents\\BlueNeonSwirl.tsk"

And... after running, I even went into Today and it was set; however, the phone was still showing the original theme! I had to change it to another theme, exit, then set it back for the change of appearance to occur.

And you're right about the Start Menu list. I remember in some past Wizard roms when people duplicated lnk's into that area, then you couldn't use the Button control settings to move.

Also, I'm getting errors when I do the "Export Registry" after going through the restore (see attached screen captures).
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
The start menu only replaces the recently viewed, not the start menu that you set, I look for it yesterday for a long time after seeing this and I couldn't find where the selected start menu is stored. Not sure about the themes, I never have bothered to change mine.
[8525, TyTN, MDA Vario II, JasJam ROM Development] saeba:
Once I thought about it... Rob has the right of it.

The Start menu shows the items in the Windows\Start Menu\ directory. The way the Settings -> Menus control panel works is that it moves the links to/from that area (7 max). You have to be careful though not to create links in both areas or the Menu control panel will fail trying to move it out.

Thanks for the other additions though. They worked great :-)! And I may get a real use for them.... I'm thinking of moving to faria's new release. I got started with his ROMs on the Wizard... he's the best!
[8525, TyTN, MDA Vario II, JasJam ROM Development] luniz97:
sorry for being so stupid...but what does this program exactly do?
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
The program backs up your current settings and will auto restore cabs on hard reset or after new ROM flash.
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
I had made one upgrade to the 1General.xml file which isn't present here.

<Provs>

<ProvXML>

<ProvFile>Email2.xml</ProvFile>

<Characteristic>EMAIL2</Characteristic>

</ProvXML>

</Provs>

It backup's email settings and restores them using the provisioning XML stuff.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
I made a cab for my email2 stuff. Makes it much easier.

For other people it will be handy though, does it save the password now?
[8525, TyTN, MDA Vario II, JasJam ROM Development] dny238:
No, which is an interesting point. I thought about pulling it out into a seperate config xml so people like you could avoid it if you didn't want it.

Maybe I will do that. Have to give it some thought.

Thanks for your feedback.

Rob
[8525, TyTN, MDA Vario II, JasJam ROM Development] Lurch3559:
I have gone a little above all that, I have edited all of the configs so that I know exactly what is being backed up. I would like to see if it possible to have an order sequence so that I could put them ion the order that I want them backed up (the configs that is).

When I hard restart this what I have to do.

1. install cabs for non program files, no restart

2. install program cabs, restart

3. restore general windows settings, IE settings, MyDocument, Sounds and Rings, Windows Live and restart

4. restore program backups restart

I have tried to do the restore item 3 and 4 above together but I get and error message. The message log doesn't have anything in it though when I check. Doing it this way I don't get any errors.

I don't use the activesync settings any longer as they really caused me a lot of headaches, the PPC really didn't like it.

If I do all of these things first before syncing I have no troubles with my sync, couple of clicks and I am there.

I have currently made configs for 6 programs that I am running. I still have to install the cabs for the programs first but this reinstates my settings for them following that.

A lot of trial and error, but I just reflash and I was up and running in about 5 minutes and most of that time was from restarts. I haven't tried yet with a different rom yet, that will be for a different day. Write now the other ROM's seem to have there share of problems, I will wait and see if some of these get resolved first before I start playing.