View Full Version : Exporting application reg keys
serfboreds
21-07-2008, 01:28 AM
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
scrawnyb
21-07-2008, 01:30 AM
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
This is actually something I've been wondering about and kinda 'working on'.
I'm trying to find out how certain applications store registration info (registry, files, etc.)
Just a few in question that I'm trying to auto-register on flash:
Resco Tools: Backup and Explorer
Handmark Games (Yahtzee and Scrabble)
c@rL0$
21-07-2008, 01:36 AM
I am looking to create some cabs (now that I have WinCE figured out) and wondered if others had quick ways of getting all of the reg keys exported for specific applications so I can add those into my cab.
If I can get buttons, today screen prefs, apps, and a few other things done in one compiled "Setup CAB" I will have my phone auto-customized I had it before flashing. I am so close to having only cabs in my UC if I can get this, and do away with the copy commands.
It's simple. If you bought WinCE you will then be able to use the option to export and import REG Keys.
So all you would need to do is open a CAB from any program -- Export the REG -- and close it out.
Then open the CAB project you made and import the REG key and your good.
But you must first buy WinCE. The evaluation copy doesn't let you do this. Well it didn't let me.
For cabs that are just changing reg keys for you and not actually installing anything...it's easier to just create an xml file. Name the xml file _setup.xml and use makecab from the command line like this:
makecab _setup.xml yourcab.cab
studentjunk
21-07-2008, 03:55 AM
CeREgistryEditor (http://ceregeditor.mdsoft.pl/) also makes cabs from registry files. Free program.
serfboreds
21-07-2008, 05:26 AM
CeREgistryEditor (http://ceregeditor.mdsoft.pl/) also makes cabs from registry files. Free program.
The two aspects i was looking for are solved by this program and GC's suggestion. Thanks!
serfboreds
21-07-2008, 10:21 PM
CeREgistryEditor (http://ceregeditor.mdsoft.pl/) also makes cabs from registry files. Free program.
So, I need to give a little more explanation for my question.
I am pretty sure that I know how to change registry keys one by one using XML.
I am not sure if it is possible to export everything from a folder in a way that it can be combined with other registry exports and ultimately cabbed. Say I am looking to replace every key in HKLM/Software/Microsoft/Today after a new flash so that certain things are enabled and disabled.
My hope is that I will be able to export the entire "today" in such a way that I can add those to a wince cab. It would be nice to be able to export several of these "folders" at one time and drag them over.
Like I said, I am trying to prevent having to do this one key at a time so that in the future even if I change the setup I don't have to change the strategy for export/import.
So, I need to give a little more explanation for my question.
I am pretty sure that I know how to change registry keys one by one using XML.
I am not sure if it is possible to export everything from a folder in a way that it can be combined with other registry exports and ultimately cabbed. Say I am looking to replace every key in HKLM/Software/Microsoft/Today after a new flash so that certain things are enabled and disabled.
My hope is that I will be able to export the entire "today" in such a way that I can add those to a wince cab. It would be nice to be able to export several of these "folders" at one time and drag them over.
Like I said, I am trying to prevent having to do this one key at a time so that in the future even if I change the setup I don't have to change the strategy for export/import.
Read my email and take a look at the registry cab I attached.
serfboreds
21-07-2008, 10:34 PM
Read my email and take a look at the registry cab I attached.
Thanks GC, this is what I needed.
serfboreds
22-07-2008, 01:59 AM
Here is my final XML for anyone who cares to share theirs, I learned a lot by looking at GC's (credit where it is due). I put my sdconfig.txt on here too.
Feel free to let me know if there is a better way to do any of this. I will be testing tonight to see how it does after a flash. This should save me 20 minutes of tinkering if everything goes right.
Other than the background not being possible (that seems hard to believe there is no way to do this), I will only have a few things to set up when flashing if all goes well. This will be so worth the hour time it took to create.
Any way to register devices via XML (wifi, bluetooth)?
PS. Though I didn't do it here, I have cabbed the _setup.xml file for installation with UC.
All those CPY commands are still unnecessary. You could make one cab to do all of that very easily.
Also, why do you have LOCK/HIDE commands around the reg cab?
serfboreds
22-07-2008, 09:47 AM
All those CPY commands are still unnecessary. You could make one cab to do all of that very easily.
Also, why do you have LOCK/HIDE commands around the reg cab?
Got those two things cleared up, cabbed the files to copy which works great.
Can't seem to figure two things out:
1. xml didn't install registry keys. Did I miss some setting in WinCE (I just set it as universal, added to files, and set the location to %InstallDir%). I had all of the files I was going to copy in UC in this same created cab as _setup.xml; the copied files went across fine, but no registry keys were changed. This leads me to believe that xml didn't load correctly or at all.
2. Copying folders. I cant seem to copy folders directly into WinCE so I would think that the folder must be created then the files must be copied across. How do you create these folders (I want to copy across AstroGPSLauncher and HTC Home icons to root). I tried using the copy command in UC as well but I think the syntax was wrong by using backslash after folder name in CPY1 and no slash after new folder in CPY2.
Thanks, I am so close to getting this.
Got those two things cleared up, cabbed the files to copy which works great.
Can't seem to figure two things out:
1. xml didn't install registry keys. Did I miss some setting in WinCE (I just set it as universal, added to files, and set the location to %InstallDir%). I had all of the files I was going to copy in UC in this same created cab as _setup.xml; the copied files went across fine, but no registry keys were changed. This leads me to believe that xml didn't load correctly or at all.
2. Copying folders. I cant seem to copy folders directly into WinCE so I would think that the folder must be created then the files must be copied across. How do you create these folders (I want to copy across AstroGPSLauncher and HTC Home icons to root). I tried using the copy command in UC as well but I think the syntax was wrong by using backslash after folder name in CPY1 and no slash after new folder in CPY2.
Thanks, I am so close to getting this.
1. You don't use WinCE to create cabs from provxml. You use makecab as I previously stated.
2. Get rid of the CPY commands, don't use them at all. If you want to install youricon.png to root, you just add youricon.png as a file in the cab and set the location to root. Default install directory doesn't matter, you can specify install location for each file separately.
serfboreds
22-07-2008, 08:32 PM
1. You don't use WinCE to create cabs from provxml. You use makecab as I previously stated.
2. Get rid of the CPY commands, don't use them at all. If you want to install youricon.png to root, you just add youricon.png as a file in the cab and set the location to root. Default install directory doesn't matter, you can specify install location for each file separately.
So, makecab worked to create the cab but it states that the installation of the cab was unsuccessful. Here is the zip of the setup file and the cab I created (I kept yourcab.cab naming for fun).
P.S. I got rid of all copy commands, but still can't figure out how to create a new folder on the device using xml or wince. Please explain how I can cab a folder with all its contents, or create a new folder in xml, then UC a cab to install the contents.
bedoig
22-07-2008, 08:45 PM
That version of WinCE doesn't allow for import of complete folders. Later versions do.
You can also try QuickCab. Don't remember the user's name, but it is being developed by an XDA member. I believe it allows for copying complete folders, and has a simple GUI.
Edit: If you are just looking to do it for AstroGPS it should be fairly easy. Isn't it just one or two files in /AstroGPS... and a shortcut in /windows/start menu/programs? If so, just drag the file (or two) into WinCE, and it will ask you where you want it to be installed. Then just choose /AstroGPSLauncher (you have to create a new folder, but the option is right there).
serfboreds
22-07-2008, 08:56 PM
That version of WinCE doesn't allow for import of complete folders. Later versions do.
You can also try QuickCab. Don't remember the user's name, but it is being developed by an XDA member. I believe it allows for copying complete folders, and has a simple GUI.
Edit: If you are just looking to do it for AstroGPS it should be fairly easy. Isn't it just one or two files in /AstroGPS... and a shortcut in /windows/start menu/programs?
Thanks for looking into the second issue.
Right, but I need to have that in a folder called AstroGPSLauncher on the root. I also am looking to install the HTC Home folder (overwrite the other one). I will get a newer copy of WinCE.
Anyone have any idea why this cab won't install?
bedoig
22-07-2008, 08:57 PM
Other than the background not being possible (that seems hard to believe there is no way to do this)...
Are you talking about your Today screen background? You are basically looking to have a certain theme selected? If so, then that is no problem. TSK's are basically just cabs themselves. The Theme selection app in WM just reads the TSK, imports the registry color info, and copies tdywater.gif/.jpg and stwater.gif/.jpg to /windows. At startup, WM reads those image files and assigns them as your Today and Start Menu wallpapers. Just use WinCE to export the contents of the TSK. Then use whatever method you like to update your registry and copy those files to /windows.
Any way to register devices via XML (wifi, bluetooth)?
I'd like to know this as well. I might look into it, but please let me know if you find a solution. Thanks!
Serf, do you have AIM? If so pm me your sn so we can talk over that. This is a really really simple process, and I know exactly why the cab isn't installing, but it sucks to explain over forums/email.
serfboreds
22-07-2008, 09:02 PM
Serf, do you have AIM? If so pm me your sn so we can talk over that. This is a really really simple process, but sucks to explain over forums/email.
serfboreds7777 and I am online now.
serfboreds
23-07-2008, 01:33 AM
I have this mostly figured out for my needs, a few tweaks and some new ideas since getting things flashed with UC / XML / Cabbed files. If anyone wants to get some help setting up their xml and UC I will do my best to help you through the process.
Props to GC, the man knows his stuff.
tschwenke
23-07-2008, 03:46 PM
FYI, this thread is great. I am looking into UC and setup as well. The community has done a great job realizing the issue and fixing it I just have to take the time to learn!
(so trust me, others are reading this thread. I need to learn the tools now to dump my registry changes and create the xml)
serfboreds
23-07-2008, 05:06 PM
So after some guidance I got all the binary xml figured out (commas instead of spaces), and flashed UC while running the cabbed xml and copied files per sdconfig.txt. It was rewarding to see the keys put my settings and other reg fixes back in place.
Some tweaks for button holds still needed (i am using pocket plus), but the payoff so far is good. I mean if you can find the registry keys that set program preferences, you can write that key change into xml and be back where you were, without spb or resco backups.
Tools used: WinCE, makecab.exe, notepad.
Pardon if this is remedial for some :D
tedet
24-07-2008, 02:45 AM
I too am sorry if this is remedial, but does anyone know where in the reg I can find the account setup/password keys for my various email accounts using poutlook?
jambrose
24-07-2008, 03:58 AM
I too am sorry if this is remedial, but does anyone know where in the reg I can find the account setup/password keys for my various email accounts using poutlook?
I found my exchange setting in the active sync folder:
HKEY_CURRENT_USER\Software\Microsoft\ActiveSync\Pa rtners\
tedet
24-07-2008, 04:02 AM
Sorry for not being clear - I am looking to set up gmail not a exchange server. After looking I think I made need EMAIL2 CSPs but I am still not sure - mustn't there be a reg some where
jambrose
24-07-2008, 04:11 AM
I am having issues with the reg -> XML tool. It doesn't seem to like a whole folder of registry settings maybe. Like trying to convert my Owner reg settings gives me this in the xml file:
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type=" H K E Y _ C U R R E N T _ U S E R \ C o n t r o l P a n e l \ O w n e r " translation="filesystem">
</characteristic>
</characteristic>
</wap-provisioningdoc>
None of the parameter info is getting into the xml file. Any ideas.
serfboreds
24-07-2008, 04:29 AM
I am having issues with the reg -> XML tool. It doesn't seem to like a whole folder of registry settings maybe. Like trying to convert my Owner reg settings gives me this in the xml file:
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type=" H K E Y _ C U R R E N T _ U S E R \ C o n t r o l P a n e l \ O w n e r " translation="filesystem">
</characteristic>
</characteristic>
</wap-provisioningdoc>
None of the parameter info is getting into the xml file. Any ideas.
I would instead look at this by doing it by hand if you cant get those keys exported. Go to that key and copy the binary values in the "BINARY CODE HERE" sections; something like this:
<wap-provisioningdoc>
<!-- Registry Settings -->
<characteristic type="Registry">
<!-- Application Preferences -->
<!-- Sets Owner Name -->
<characteristic type="HKCU\ControlPanel\Owner" translation="filesystem">
<parm name="Owner" value="BINARY CODE HERE" datatype="binary"/>
<parm name="Owner Notes" value="BINARY CODE HERE" datatype="binary"/>
<parm name="E-mail" value="BINARY CODE HERE" datatype="binary"/>
<parm name="Telephone" value="BINARY CODE HERE" datatype="binary"/>
<parm name="Name" value="BINARY CODE HERE" datatype="binary"/>
<parm name="Notes" value="" datatype="binary"/>
</characteristic>
<!-- End registry provisioning -->
</characteristic>
</wap-provisioningdoc>
serfboreds
24-07-2008, 08:47 PM
I want to find a program that allows me to find changes to the registry. I have had a hard time finding which keys change for specific settings within programs. Like Pocket Plus, I want to find the key that adjusts the battery indicator type but I have been unsuccessful finding that key. So I want to see if there is a way to see those keys that have been changed as I turn things off and on.
My hope is that I will be able to set some programs with difficult-to-find keys such as TCPMP (to set GFI and -300 a/v offset), TomTom (voice, menus, etc), and more. Thanks guys.
Edit: I may have a way to do this. Will report back later.
jambrose
25-07-2008, 07:29 PM
I want to find a program that allows me to find changes to the registry. I have had a hard time finding which keys change for specific settings within programs. Like Pocket Plus, I want to find the key that adjusts the battery indicator type but I have been unsuccessful finding that key. So I want to see if there is a way to see those keys that have been changed as I turn things off and on.
My hope is that I will be able to set some programs with difficult-to-find keys such as TCPMP (to set GFI and -300 a/v offset), TomTom (voice, menus, etc), and more. Thanks guys.
Edit: I may have a way to do this. Will report back later.
Someone posted that this reg edit program will find differences:
http://ceregeditor.mdsoft.pl/?lang=en
serfboreds
25-07-2008, 08:13 PM
Someone posted that this reg edit program will find differences:
http://ceregeditor.mdsoft.pl/?lang=en
That is how I solved the problem. Thanks!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.