Converting a PPC EXE to OEM - Windows Mobile

I'd like to cook this hot fix into my ROM. Can anybody help me with this? Even if you just make it a Cab that I can turn into a OEM I would greatly appreciate it.

Since you're looking to cook this into a ROM and since you'll likely run into this scenario again; here's the long method of doing it in case the shortcut methods don't work.
Step 1: Extraction
Use WinRAR (or other extract) to extract the contents of the .EXE
Open _SETUP.XML with a text editor
Step 2: Rename Files
Rename the extracted files as per the names in the .XML.
Here is an example; extracted filename in blue should be renamed to green.
Code:
<characteristic type="FileOperation">
<characteristic type="\temp" translation="install">
<characteristic type="MakeDir" />
<characteristic type="[COLOR="green"][B]HTCIMSSvc.exe[/B][/COLOR]" translation="install">
<characteristic type="Extract">
<parm name="Source" value="[COLOR="Blue"][B]HTCIMS~1.001[/B][/COLOR]" />
<parm name="NoSkip" />
</characteristic>
Step 3: Examine .XML & .REG
Examine the contents of the .XML file. If the file contains several actions, you would likely rename the file to .PROVXML - this thread has some good links for you to review.
Tip, file copy operations could be moved to a INITFLASHFILES.DAT file eliminating the need for the .PROVXML.
Examine the contents of the .REG file. The contents of the file will become your .REG (or.RGU) file for your OEM package.
Tip, look at the structure of an existing OEM package (ex: there are some for PkgToolsBuildOS & VisualKitchen).
A few other observations
bootstrap; this hotfix runs a setup bootstrap. You may need to perform a pre/post device capture using an application similar to dotFRED Task Manager. Here's how with dotFRED Task Manager:
Launch the dotFRED Task Manager, select Registry, select Export Registry, exit.
Run the hotfix, don't restart if possible.
Launch dotFred Task Manager, select Registry, select Export Registry, exit. Restart.
Launch dotFred Task Manager, select Registry, select Export Registry, exit.
You should now have 3 registry exports (or 2 if a forced restart): pre-install, post-install, post-restart. Use a comparison tool (ex: BeyondCompare) on your PC to compare the contents of these exports so as to isolate any pertinent actions/registry changes executed by the bootstrap.
registry changes; this hotfix applies changes to the Windows registry.
shortcuts; none created.
files; there are six files in this hotfix payload. Since you will be cooking a custom OEM package with the hotfix, it's possible you won't need most of these files as they are typically used by the hotfix installer.
directories; there are two folders created in this hotfix payload. Since you will be cooking a custom OEM package with the hotfix, it's possible you won't need to create these directories as they are typically used by the hotfix installer (temp) or already exist (windows).
Code:
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="[COLOR="red"][B]SetupDLL[/B][/COLOR]" value="[COLOR="red"][B]1[/B][/COLOR]" />
<parm name="OSVersionMin" value="3.0" />
<parm name="OSVersionMax" value="4.21" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="-536870912" />
<parm name="UnsupportedPlatforms" value="JUPITERHPC" />
<parm name="AppName" value="HotFix RAP_S00870" />
<parm name="InstallDir" value="%CE1%\RAP_S00870" translation="install" />
<parm name="[COLOR="magenta"][B]NumDirs[/B][/COLOR]" value="[COLOR="magenta"][B]2[/B][/COLOR]" />
<parm name="[COLOR="blue"][B]NumFiles[/B][/COLOR]" value="[COLOR="Blue"][B]6[/B][/COLOR]" />
<parm name="[COLOR="cyan"][B]NumRegKeys[/B][/COLOR]" value="[COLOR="cyan"][B]1[/B][/COLOR]" />
<parm name="[COLOR="cyan"][B]NumRegVals[/B][/COLOR]" value="[COLOR="cyan"][B]1[/B][/COLOR]" />
<parm name="[COLOR="purple"][B]NumShortcuts[/B][/COLOR]" value="[COLOR="purple"][B]0[/B][/COLOR]" />
</characteristic>
HTH,

hilaireg said:
Since you're looking to cook this into a ROM and since you'll likely run into this scenario again; here's the long method of doing it in case the shortcut methods don't work.
---------- SNIP ---------------
HTH,
Click to expand...
Click to collapse
I like your method for comparing registries with beyond compare, I'll have to try that one day. I've always used sktracker

TheSlimHim said:
Thank you very much for taking your time to help me. You gave me a very detailed explanation with examples to my question. I did steps 1 and 2 using 7zip and notepad++. However for Step 3, I have ran into a snag. I'm not sure what you are telling me to do.
Part 1: I read the thread you directed me to but I am still a bit confused on what it is I should do. I normaly add OEM packages this way.
Click to expand...
Click to collapse
I've used Ervius Visual Kitchen and PkgBuildOS; in these kitchen an OEM package structure is typically as follows:
PkgToolsBuildOS
<packagename>
<guid>.rgu
<guid>.dsm
files
modules
.provxml
shortcuts
initflashfiles.txt
option.xml​
Visual Kitchen
<packagename>
<guid>.rgu
<guid>.dsm
app.reg
app.dat
_skip
<Files>​files
modules
.provxml
shortcuts​
Haven't used the kitchen you are using. The best approach for you to take is examine a few packages in your kitchen (ex: Opera, Zip, etc.) to determine the structure you will need to follow.
Part 2: I can not find any reg or rgu files in the archive.
Can you please try to guide me a little bit more? I appreciate what you have already done to help me, however I am just beginning to become a Chef and am very eager to learn. I have previous experience in the programming world.
Click to expand...
Click to collapse
In the hotfix package you are working on;
HTCIMS~1.001 = CM_Entries.xml
PLATFO~1.004 = Platformxxx.reg
The .XML indicates where HTCIMSSvc.exe (in this case .\Windows) should be copied and also contains a HKLM registry entry.
The .REG is empty.
The challenge with this package is that it also contains a bootstrap (SetupDLL/CESetupDLL) and the _setup.xml also contains an HKCU registry entry. This typically indicates that the bootstrap setup may be adding registry entries as well. In such cases, the best approach is to perform pre/post registry captures to see what pertinent registry changes are made ... similar to repackaging application on a Windows platform (ex: InstallShield, Wise, etc.)
I have done all but one of the "requirements to start becoming a Chef" as one member has listed. That one is making my own cab. However I have made my own Reg edit programs for PCs among other things.
Thank you very much for your time,
TheSlimHim
Click to expand...
Click to collapse
No worries; we were all n00bies at one time or other. And just when you think you know what you're doing, someone will come along and show you a better method - happens to me all the time.

Related

How to delete a registry key using a CAB

Hi
I am having hard time in making a cab file to delete a registry value.
as an example I tried to import the following into WinCE CAB manager:
HTML:
[HKEY_LOCAL_MACHINE\System\Platform]
"PSAtRoot"=-
so that I can delete PSAtRoot from registry....
the WinCE CAB manager import nothing !!
this is working for desktop but not for PPC
any help on how to delete items in registry using cab file... or anything that is automated!
Thanks
Install the .cab file known as PHM RegEdit. Also, before you delete any registry values, make sure you know what your doing!
I believe he is wanting a cab that makes the change, not a registry editing program. I personally would make a mortscript install.mscr and uninstall.mscr, and make your own custom cab with mort's included setup.dll
xd1936 said:
I believe he is wanting a cab that makes the change, not a registry editing program. I personally would make a mortscript install.mscr and uninstall.mscr, and make your own custom cab with mort's included setup.dll
Click to expand...
Click to collapse
I know what they want, just showing that it's a lot easier to open a reg editor and do it manually, then creating a list of commands to execute a simple deletion of one entry.
TheChampJT said:
I know what they want, just showing that it's a lot easier to open a reg editor and do it manually, then creating a list of commands to execute a simple deletion of one entry.
Click to expand...
Click to collapse
You clearly missed the question and the purpose why he is posting in Development and Hacking section. Hes asking todo a specific task in a cab operation and you advice him to install a reg editor and be carefull?? Jesus.. If you got nothing to say, dont say it. Sorry, but youre reply pissed me off here!
hmdshmds said:
Hi
I am having hard time in making a cab file to delete a registry value.
as an example I tried to import the following into WinCE CAB manager:
HTML:
[HKEY_LOCAL_MACHINE\System\Platform]
"PSAtRoot"=-
so that I can delete PSAtRoot from registry....
the WinCE CAB manager import nothing !!
this is working for desktop but not for PPC
any help on how to delete items in registry using cab file... or anything that is automated!
Thanks
Click to expand...
Click to collapse
Mate, read this. I think its a good start for youre question
You can specify a pre/post XML when compiling your CAB via CabWizSP. PreXML will be carried out before the main INF instructions as opposed to PostXML codes which are carried out after the INF instructions. Kindly check this sample CabWizSP syntax:
CODE
cabwizsp Sample.inf /postxml PostXML.xml /cpu ARMv4
What happens when you run the code?
CabWizSP will compile instructions in 'Sample.inf' to output 'Sample.ARMv4.CAB'. It will add 'PostXML.xml' to the output CAB. The target device CPU would be 'ARMv4' (SP2003)
The post XML file may contain your 'delete file' instructions. An example would be:
Code:
<characteristic type="FileOperation">
<characteristic type="\Storage\windows\AppMgr\Install\Target File.ext" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
</characteristic>
</characteristic>
</characteristic>
Above code will force delete 'Target File.ext' at \Storage\windows\AppMgr\Install. Note that the files you wish to compile should be in the same folder as the INF, the (Post) XML and the CAB making files (makecab.exe, cabwiz.ddf, CabwizSP.exe)
Click to expand...
Click to collapse
http://www.modaco.com/index.php?showtopic=235258&view=findpost&p=844503
You should read the whole tread aswell good info for you on cab and registry
http://www.modaco.com/content/smart...n/235258/create-cab-files-to-change-registry/
Play whit this for register changes, tbh I havent deleted in registry via cab before. I overwrite in cab form and wrap it whit provxml when cooking.
raiisak said:
You clearly missed the question and the purpose why he is posting in Development and Hacking section. Hes asking todo a specific task in a cab operation and you advice him to install a reg editor and be carefull?? Jesus.. If you got nothing to say, dont say it. Sorry, but youre reply pissed me off here!
Click to expand...
Click to collapse
The OP asked for an AUTOMATED way to delete the reg entry, not how to setup an xml file for deletion of the key during ROM cooking. And yes, you better believe I said make sure you know what your doing! If a person asks how delete a registry entry with this type of thread started for it, I'm a bit concerned with the fact they might not know what they are doing. So, really I'm soooooo sorry I hurt you feelings, but I did give an answer, it wasn't rude, and I gave caution to the person who wants to change the registry.
Ohhhhhh! Your post made me so sad !
HAAAAA! LOL !
delete registry entry using xml
TheChampJT : thanks for welling to help
raiisak : Thanks alot for the the help
while searching I found away to delete registry entry using (Provisioning)pre/post xml in the WinCE CAB Manager.
I modified the xml code accourding to this MSDN article
this my xml code :
HTML:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKEY_LOCAL_MACHINE\System\Loader">
<noparm name="EnableUpperModules" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<nocharacteristic type="HKEY_LOCAL_MACHINE\System\Loader\LoadModuleLow" />
</characteristic>
</wap-provisioningdoc>
unfortunately nothing deleted !
did I miss something?
Why don't you create this _setup.xml:
Code:
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="OSVersionMin" value="4.0" />
<parm name="OSVersionMax" value="6.99" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="-536870912" />
<parm name="AppName" value="YOUR NAME APP" />
<parm name="InstallDir" value="%CE2%" translation="install" />
<parm name="NumDirs" value="0" />
<parm name="NumFiles" value="0" />
<parm name="NumRegKeys" value="2" />
<parm name="NumRegVals" value="1" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="Registry">
<characteristic type="HKEY_LOCAL_MACHINE\System\Loader">
<noparm name="EnableUpperModules" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<nocharacteristic type="HKEY_LOCAL_MACHINE\System\Loader\LoadModuleLow" />
</characteristic>
</wap-provisioningdoc>
and then make the cab with ms makecab:
Code:
makecab _setup.xml mycab.cab
g77:
hmm... the output CAB cannot be installed
"try installing again to a different location"
any clue?
Going to try youre cab
hmdshmds said:
...while searching I found away to delete registry entry using (Provisioning)pre/post xml in the WinCE CAB Manager.
Click to expand...
Click to collapse
Thanks for that idea! I managed to delete the entire ClearType key from the registry using the Post-XML option in WinCE Cab manager.
I now have a cab that deletes the ClearType key and thus disables cleartype! (From a rom that has cleartype enabled by default because the key exists)
Here is what I put in the Post-XML:
HTML:
<characteristic type="Registry">
<nocharacteristic type="HKLM\System\GDI\CLEARTYPE" />
</characteristic>
sean222 said:
Thanks for that idea! I managed to delete the entire ClearType key from the registry using the Post-XML option in WinCE Cab manager.
I now have a cab that deletes the ClearType key and thus disables cleartype! (From a rom that has cleartype enabled by default because the key exists)
Here is what I put in the Post-XML:
HTML:
<characteristic type="Registry">
<nocharacteristic type="HKLM\System\GDI\CLEARTYPE" />
</characteristic>
Click to expand...
Click to collapse
Thats funny. Its the wery same string I use in kitchen. Didnt think of cabing it. N1 hehe.
Originally Posted by hmdshmds
hmm... the output CAB cannot be installed
"try installing again to a different location"
any clue?
Click to expand...
Click to collapse
I got this issue too, so for hmdshmds or anybody else who finds this thread, the answer is simply (well after a day of tracking it down ) that in the registry path, the root part must be in the short form "HKLM" etc, and NOT "HKey_Local_Machine" as hmdshmds/g77 had it.
I've put an article on my website explaining about it, and also - care of a Microsoft blog entry - how to get Visual Studio 2005 to build this right into the installer without any other external software. See Removing Registry Keys with WM6 Deployment . (*UPDATE 1-Sep-2008* Previously, the IE7 phishing filter was reporting the above link as a "possible" phishing site. It absolutely is not and the false warning was reported to Microsoft and has now been corrected.)
Happy coding guys and gals
I'm trying to remove unwanted Today Panel items. After some trial and error, I've been able to come up with the following code:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<nocharacteristic type="HKLM\Software\Microsoft\Today\Items\"Owner Info"" />
</characteristic>
</wap-provisioningdoc>
When I try to import it using SASHAMI, nothing happens; and when I try using 'Advanced Configuration Tool', I receive
System.SystemException:
Error Code #:
2147500037
at
Microsoft.WindowsMobile.Configuration.ConfigurationManager.MainConfigurator(XmlDocument configDoc, UInt32 flags)
at
Microsoft.WindowsMobile.Configuration.ConfigurationManager.ProcessConfiguration(XmlDocument configDoc, Boolean metadata)
at
AdvancedConfig.□.□(Object □, EventArgs □)
Click to expand...
Click to collapse
Apparently, there's still something wrong with my XML, but I'm at a loss. Anybody have any ideas?
Thanks
Roger
well, maybe a bit late answer but you cant remove 'folders' which contain values.. you need to remove them one by one, at least i cant get any further the nthat!
hmdshmds said:
unfortunately nothing deleted !
did I miss something?
Click to expand...
Click to collapse
This might be a little late as I was not a member when you posted here, but to provision with a cab you should leave out the </wap-provisioningdoc> from the top and bottom. It will not fail to parse including that string and its confusing when it still doesnt work. That is your problem. Remove wap provisioning string from top and bottom. Here is how it should look.
PHP:
<characteristic type="Registry">
<characteristic type="HKEY_LOCAL_MACHINE\System\Loader">
<noparm name="EnableUpperModules" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<nocharacteristic type="HKEY_LOCAL_MACHINE\System\Loader\LoadModuleLow" />
</characteristic>
Hi!
I am, as everyone else posting in this thread, trying to remove a bunch of registry settings using a cab-file. Thanks to this thread, my hopes of success were raised once more
I tried all of the examples posted in this thread without success, found a link on modaco which lead me to this msdn-article:
http://msdn.microsoft.com/en-us/library/ms834737.aspx
Works like a charm... Thanks a BUNCH guys!
As this is the first thing found when googled - I'll add a little information.
For files, you need to remove each and every file contained in a folder before the folder itself can be removed.
For registry keys, you do not need to remove seperate values. Deleting a registry key, deletes all contained values and subkeys.
Great post. Just what I needed.
But I have problem with WinCE CAB Manager version 3.0.0.22. Anything I added to the pre or post XML, the CAB file cannot be install. Took me forever to debug and nothing works. Anybody?
I finally switch to version 2 and it works perfectly.
I take it back, Wince CAB manager sucks. ver 2.1.0.35 cannot import reg file.

[Q] ProvXML

So, I'm trying to improve my already vast configuration cab. That's right, I created a CAB file instead of an XML. The reason? I just can't grasp the damn syntax that provXMLs use.
I've read microsoft's footage on ProvXMLs and it didn't make me all the wiser. Now though, I need them anyway, as there's something CAB files can't do;
Deleting files. How can I do this with a ProvXML?
It's just that easy:
Code:
<characteristic type="FileOperation">
<characteristic type="Windows\DarkWood.cab" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete" />
</characteristic>
</characteristic>
</characteristic>
Alright, thanks. What about deleting folders? CAn that be done while files are still inside? And registry keys?
I'm sorry for the many questions, but provxml's are confusing
EDIT:
Oh, and what's up with the darkwood.cab?
No problem
Remove Folder
Code:
<characteristic type="FileOperation">
<characteristic type="%CE2%\Start Menu\Programs\Office Mobile" translation="install">
<characteristic type="RemoveDir" />
</characteristic>
</characteristic>
Edit Registry Keys
There are 2 different Solutions for creating a xml File which edits the registry.
1. You can write your File in simple RGU-Style and use and Rgu2xml converter to get your xml file
2. You write it straight away in xml
For Example a part of my Customization and Tweak-Xml-File to enable Cleartype:
Code:
<characteristic type="Registry">
<characteristic type="[B]HKLM\System\GDI\ClearTypeSettings[/B]">
<parm name="[U]OffOnRotation[/U]" value="0" datatype="integer"/>
</characteristic>
[size=1]<characteristic type="HKLM\System\GDI\CLEARTYPE">
<parm name="Default" value="0" datatype="integer"/>
</characteristic>[/size]
</characteristic>
Thats the Dir you edit/modify
Thats the Regkey you create/modify
So, if I understand correctly, removing a folder also removes all files inside without trouble. I had already found rgu2xml.
What about deleting registry keys, is that also that simple?
Why delete them if you can set them to 0
Kid_DC said:
Why delete them if you can set them to 0
Click to expand...
Click to collapse
Umm, deleting is cleaner. Setting them to 0 leaves the key in the registry, and the less keys you have, the faster it is. So, is it possible at all, or did you propose that option because it's not?
Hehe but there are so many Keys that your 10 Keys, which you want to delete, make no difference (i think...)
Actually I don't know how to delete them because I never used this command. But I think that should be possible... try to search for "XML delete registry key xda"
I believe I found it:
Code:
<characteristic type="Registry">
<nocharacteristic type="HKLM\System\GDI\CLEARTYPE" />
</characteristic>
Deletes the CLEARTYPE key..!
Now to make the file and cab it!
I believe I found it:
Code:
<characteristic type="Registry">
<nocharacteristic type="HKLM\System\GDI\CLEARTYPE" />
</characteristic>
Deletes the CLEARTYPE key..!
Now to make the file and cab it!
What do you want to do with your cab?
Uninstall the panels and reassign the panel button to something useful. =]
hm... nice
I've removed the Panels in my current version of my Rom, too. I only need the Media Xperiance Panel and i can get it running without panelmanager
Kid_DC said:
hm... nice
I've removed the Panels in my current version of my Rom, too. I only need the Media Xperiance Panel and i can get it running without panelmanager
Click to expand...
Click to collapse
You can? That's neat! Mind sharing that? Would be nice if that runs, but then without the background process that takes up so much of the cpu...
Share!
It's not difficult, really
Only Remove Panelmanager, Install Media Xperiance Panel (not that from the R3AA beta) and install Pubba's Panel Installer. Now reassign the Panelbutton to the Mxp.exe from Pubba and it's done
Alright, I didn't know Pubba's was compatible. What about the background process, does it terminate once you shut it down?

[REF] How-To: automate backup (inc. Manila conf) before a ROM upgrade using SASHIMI

To start with, English is not my mother tongue, and I am only a poor little student , sorry for possible mistakes.
I have spend a lot of time gathering information and making trials on how to backup automatically my Touch HD before a ROM flash and restore it in the same state automatically after the flash, with focus in particular on Manila settings. I will describe here solutions that I have found, hope it will save time for others.
I will try to make this how-to simple, for the n00bs like me . Hence, sorry if some information seems useless/obvious for some people here.
This how-to is meant to save your time in finding information & testing, however, SASHIMI still require some amount of time to be set up correctly. If you consider you don't have more than 2 hours for it, don't start reading. Despite the initial amount of time to spend, it's worth it, trust me! If you are not convinced, take a look to my conclusion:
"With this method I am able to backup/restore almost all my data and settings automatically, including Manila configuration, Opera bookmarks, cache and cookies, Start Menu shortcuts organisation, WiFi settings, Email account settings, OS tweaks, Wallpaper, ringtones, notification, owner info, "my contact card" info, Facebook link with contact, messenger, windows live & facebook login/passwords, 3rd party application settings, etc... in less than 2 minutes!"
This how-to have been tested on several WM6.5 cooked ROMs with Manila 2.1. Concerning WM6.1 and other TF3D versions the principle should be the same, however file and registry path may differ.
My backup strategy involves:
- Microsoft MyPhone for contacts, agenda, tasks, mails, SMS/MMS, ringtones, and documents on internal storage.
- SASHIMI for everything else: Manila configuration (Programs Tab organisation, Weather cities, My Contact Card, Facebook, Push Pages...), Wifi/Bluetooth settings, Email accounts settings, applications settings, keyboard settings, OS tweaks, etc.
Step 1: What you need
First, go to http://www.winmo-experts.com and download SASHIMI v8.0 (you must be registered to be able to download). Once the package unzipped on your PC, you need to read the (very complete) documentation, which is in [extracted_folder]\documentation\sashimi.html. You may want to watch the tutorial videos as well.
If your ROM doesn't come with Microsoft MyPhone, go to http://myphone.microsoft.com (from your PC) or http://myphone.microsoft.com/install (from your phone) and install it. You also need to have a valid Windows Live ID account.
Note: For people who don't like the idea of having PIM data stored on a Microsoft server, you can use PimBackup instead, however, it offer less functionalities and is less convenient to use IMHO.
Step 2: How to organise your data
I recommend to put all data (music, pictures, documents) on the storage card as well as to install 3rd party applications on the storage card. However, if you happen to forget some pictures/music on the internal storage, Microsoft MyPhone will take care of that, as well as documents stored in My Documents.
Your contacts MUST NOT be stored in your SIM card. If you use contacts in your SIM card, use PIMBackup instead of Microsoft MyPhone.
Step 3: Configure SASHIMI
Ok, here is the big stuff. Be sure you read the SASHIMI documentation and watch the videos here. With this, you should be able to install SASHIMI on your storage card. Take the time to look at the data structure of the SASHIMI installation in your explorer and understand how it works. Now it's time to configure...
SASHIMI uses INI files in \SASHIMI\Program\INI to automate almost everything. The downside is that you have to do them yourself . However, once done, you can save a lot of time as it will backup and restore almost everything automatically . Example files are provided in \SASHIMI\Program\Help.
Step 3a: Registry backup
All registry backup is configured in the \SASHIMI\Program\INI\regexport.ini file. If it is not present, create it or copy from the sample files.
For Manila, the following entry must be backed up:
- Program Tab organisation:
HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher
- Weather tab, and other things (Facebook account):
HKEY_CURRENT_USER\Software\HTC\Manila
- YouTube account, Facebook account:
HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager
- "My Contact Card":
HKEY_CURRENT_USER\Software\HTC\People\OwnerInfo
- Push pages:
HKEY_LOCAL_MACHINE\Software\HTC\Manila\InternetPush\Enabled
Hence, my regexport.ini file looks like:
Code:
[Manila_Programs_Tab]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher
[Manila_Weather_Cities]
RegExportDirMode=Auto
key1=HKEY_CURRENT_USER\Software\HTC\Manila
[HTC_Accounts]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager
key2=HKEY_CURRENT_USER\Software\HTC\People\OwnerInfo
[Push_Web]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\Manila\InternetPush\Enabled
But you can also do that:
Code:
[Manila_Settings]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher
key2=HKEY_CURRENT_USER\Software\HTC\Manila
key3=HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager
key4=HKEY_CURRENT_USER\Software\HTC\People\OwnerInfo
key5=HKEY_LOCAL_MACHINE\Software\HTC\Manila\InternetPush\Enabled
The advantage of splitting in different sections like I have done in my file is to better organise your file, and to get individual confirmation on each backup by SASHIMI. If you make one big section and ONE entry goes wrong while SASHIMI backup, you will not know what went wrong (not tested, need confirmation).
If you have 3rd party application installed which store settings in the registry, you also need to add the corresponding registry keys. To find where the data is stored, the easiest way is to:
- Open HTC Task Manager or any registry editor and perform a full registry backup. In HTC Task Manager go to Bottom Left icon -> Export All, name the file before_modification.reg.
- Open you app, change the settings that you want to backup (we don't care for the value, just change them, they must be different that when you launched the app), and close the app.
- Do a full registry backup again, name the file after_modification.reg.
- Transfer both registry backup files to your PC, and use WinDiff to compare the modifications. Do File->Compare Files, select the before_modification.reg file, press ok, then select the after_modification.reg file, press ok. Select the line which has appeared and click Expand, then in the Expand menu, select Right File only (only if you selected the after_modification.reg file in second). All the new/modified entries made after your setting modification are showed in yellow (some are due to the OS, ignore them).
Edit: ubumga also suggested using SKTracer to track changes, you may want to have a look.
Copy the key that you need to backup and create a new section in the regexport.ini file:
Code:
[My_App]
RegExportDirMode=Auto
key1=what you have found
key2=...
Create a new section for each app that you want to backup settings.
For advanced user, you can also store your tweaks/advanced settings in this INI file. For example, adding this section:
Code:
[MySettings]
RegExportDirMode = Auto
Notifications=HKCU\ControlPanel\Notifications
Sounds=HKCU\ControlPanel\Sounds
Phone=HKCU\ControlPanel\Notifications\Phone
SIP=HKCU\ControlPanel\SIP
Backlight=HKCU\ControlPanel\Backlight
GSensor=HKLM\drivers\builtin\gsensor
Power=HKLM\System\CurrentControlSet\Control\Power
PressureThreshold=HKLM\Drivers\TouchPanel\PressureThreshold
FingerPressure=HKLM\Software\OEM\TFLOSettings
Wallpaper=HKCU\ControlPanel\Desktop
For more on registry tweaks see the Wiki.
If you know that you will only edit some settings/tweak once and don't change them afterwards it is also possible to put a .REG file in \SASHIMI\Auto\REG with all your tweaks in the form key=value. For exemple I want my all program tab to display 4 column, my .REG file looks like:
Code:
[HKLM\Software\Microsoft\Shell\IconConfig\]
"HorizontalIconSpacing"=dword:112
"VerticalIconSpacing"=dword:115
"IconTitleFontSize"=dword:6
SASHIMI will execute the .REG file at restore and set the registry value.
Unfortunately, all apps does not store their settings in the registry, for those, see next section.
Step 3b: File backup
Some applications store their settings in INI files or XML files or other files. Once you know in which file, it is pretty easy to backup their settings.
SASHIMI uses \SASHIMI\Program\INI\filebackup.ini for backing up files. It works like the regexport.ini file.
For example, if you have installed TouchLockPro in your internal storage (which I do not recommend), its settings are stored in \Program Files\TouchLockPro\TouchLockPro.xml. In the filebackup.ini file, add:
Code:
[TouchLockPro]
FileBackupDirMode=Auto
TouchLockPro=\Program Files\TouchLockPro\TouchLockPro.xml
For backing up Manila Stock tab add (not tested):
Code:
[Manila_Stock_Tab]
FileBackupDirMode=Auto
stocks=\Application Data\HTC\*.*,*
For backing up Opera settings, bookmarks, cookies, etc:
Code:
[Opera]
FileBackupDirMode=Auto
Secure=\Windows\Opera9\secure\wand.dat
Skin=\Windows\Opera9\Skin\*.*
Cookies=\Windows\Opera9\cookies4.dat
Bookmarks=\Windows\Opera9\opera6.adr
Settings=\Windows\Opera9\opera.ini
If you have many apps, you may prefer to make one big section for applications:
Code:
[Applications]
FileBackupDirMode=Auto
TouchLockPro=\Program Files\TouchLockPro\TouchLockPro.xml
Secure=\Windows\Opera9\secure\wand.dat
Skin=\Windows\Opera9\Skin\*.*
Cookies=\Windows\Opera9\cookies4.dat
Bookmarks=\Windows\Opera9\opera6.adr
Settings=\Windows\Opera9\opera.ini
This backup method works well for applications which are packed with the ROM, or for applications that you have installed in your internal storage, after the ROM install (which I do not recommend, I already told you that ).
For application that you have installed in your storage card and which store settings information in a file in their installation folder, there is no need to backup those files, as they are already on your storage card, and won't be deleted after a ROM flash. There is no need to reinstall the application either ! (for most of the applications, this is not true for all). The only thing to do for those application is to backup the shorcut to the application executable from the windows start menu. For example, if I have a say MultimediaApp installed in my storage card, and the shortcut to my MultimediaApp in the Windows start menu is in my Multimedia folder. Here is my entry in the filebackup.ini file:
Code:
[Shortcuts]
app1=\Windows\Start Menu\Programs\Multimedia\MultimediaApp.Ink
app2=...
...
With this method you can also backup your ringtones (\My Documents\My Ringtones, but if you are using Microsoft MyPhone this is not necessary), Facebook links with your contacts (\FacebookInfo.vol) and other stuff I didn't think about.
Note:
You can also automatically copy files to your new ROM installation by placing them in the \SASHIMI\Auto\root\ folder, with appropriate subfolders for organisation purpose, see documentation (this is not really part of the backup process, it only concern restoration).
Step 3c: Automate applications installation
Ok, so if you are still following me at this point, you have done everything to backup your applications settings, right? But you also need your applications to be installed after your ROM flash. How about make all that automatic?
Well, it's very simple. For applications to be installed in internal storage, put your cabs in \SASHIMI\Auto\CAB. For application to be installed to the storage card, put your cabs in \SASHIMI\Auto\CAB\SC. That's it. For cabs that need user inputs during installation, see SASHIMI documentation for advanced options .
/!\ Applications already installed on the storage card shall not be re-installed, you just need to recreate the start menu shortcut, see Step 3b. However, it will not work for all apps, in this case, puting the cab in \SASHIMI\Auto\CAB\SC is the way to go, but remember to backup any settings file using Step 3b first.
/!\ If your new ROM does not contain Microsoft MyPhone, you should add its cab in this step.
If you want to change the place were the application shortcut is created in the start menu it's really easy. First launch SASHIMI->Tools->Additional tools->Make CustomLinks.INI, it will populate the configuration file for you.
SASHIMI uses another INI file to manage the shorcuts creation, named customlinks.ini. You can edit it to add the path where you want the shortcut for your app to be created, using the format: application_name=shortcut_path. The path is relative to the \Window\Start Menu\ folder, and the application name must be the exact name of the CAB used for installation (without .cab).
For exemple, here is my customlinks.ini:
Code:
[LNK Files]
ManillaTodayPagev0.4=\PROGRAMS\Settings\Manila
tasksplus151=\PROGRAMS\Tools
TotalCommander=\PROGRAMS\Tools
HD Tweak 0.5.4_English=\PROGRAMS\Settings\System
IrisBrowser=\PROGRAMS\Connectivity
MusicID=\PROGRAMS\Multimedia
CorePlayer v1.3.2a Build-6909 for PPC=\PROGRAMS\Multimedia
HDWallS_v0.24b=\PROGRAMS\Settings\Manila
Scan2PDF.Mobile.1.01=\PROGRAMS\Programs
MyPhone_Beta_WM_Professional=\PROGRAMS\Tools
FdcSoftTaskMgr3.1=\PROGRAMS\Tools
Notes:
- People already using UC (User Customisation) can add their existing installation script to SASHIMI, see documentation.
Step 3d: Mail accounts and Wifi settings
SASHIMI provides a tool to automatically configure emails accounts and wifi settings, it is called Makisu. Unfortunately, it does not retrieve already configured settings and accounts. You have to enter them all manually in this step. But after that, you will never ever have to configure them again in your life , whatever how many ROM flash you will do.
Launch MAKISU directly or go to SASHIMI->Tools->MyCustomTools->Makisu.
To add an email account select EMAIL and follow the instructions. At the end, when asked to add to XML say yes. Repeat the operation for each of your email account. If you have an Exchange account go for Exchange/active sync. After that, go to WIRELESS as many time as your number of favourite WiFi hotspots.
When your are done, go to XML Operation->Create XML. Select the \SASHIMI\Auto\XML folder and press OK. When asked to provision now press No. That's it.
If you encounter difficulties, remember to watch the videos.
Step 3e: Owner and Device Info
Launch SASHIMI, go to Tools->Registry Tools->Backup Owner, press OK.
It will create owner.reg file in \SASHIMI\Backups, copy or move it to \SASHIMI\Auto\REG\. That's it.
Step 3f: Advanced functions
SASHIMI also allow to execute EXE, MortScript and install certificates during user customisation process, see documentation.
-------------------------------------------------------------------
OK, now you are done for the configuration phase. Steps 1 to 3 are only to be done once. Backup your XML, REG and INI files on your PC (I personally backup the entire SASHIMI folder on my PC). The hard work is finished, now you can enjoy automatic backup/restore of all your data in just a few steps.
Step 4: Backup
Before flashing your new ROM:
Step 4a: PIM backup
To backup contacts, agenda, tasks, mails and SMS/MMS as well as music, picture and documents placed in the internal storage, just launch Microsoft MyPhone synchronisation.
Note: If an Exchange account is configured, its mails will not be backed up by MyPhone, you have to use your Exchange synchronisation. Same for Windows Live contacts.
Step 4b: SASHIMI backup (other data/settings backup)
You can do the backup manually or automatically.
Manually:
Launch SASHIMI, go to Tools->Registry Tools->Custom Export. It will backup all registry keys specified in your regexport.ini file. Pay attention to the logs to see if everything worked well for each step. Then go to Tools->File Tools->File Backup. It will backup all the files specified in your filebackup.ini. Pay attention to the logs once again.
Automatically:
Go to Start Menu -> SASHIMI -> SASHIMI Quicklinks -> FullBackup
Check once again that your Makisu XML file is in the SASHIMI\Auto\XML, your owner.reg file in \SASHIMI\Auto\REG and your cabs in \SASHIMI\Auto\CAB. Remember to include the Microsoft MyPhone cab if it is not included in the ROM you are going to flash.
Step 5: FLASH!
Step 6: Restore
Step 6a: SASHIMI
After flashing go to your storage card and launch SASHIMI (\SASHIMI\Program\Bin\SASHIMI). Select AUTO and check the logs. If you have many apps to be installed, the operation can take some times.
Step 6b: Microsoft MyPhone
Just launch Microsoft MyPhone and log in, it will download all your PIM data (you need a data connection at this time, and your time/date settings must be correct).
DONE!
For each new ROM flash, go through step 4 to 6. You will sometime need to modify your SASHIMI regexport.ini and filebackup.ini to add new tweaks/applications settings, but that's it.
Conclusion
With this method I am able to backup/restore almost all my data and settings automatically, including Manila configuration, Opera bookmarks, cache and cookies, Start Menu shortcuts organisation, WiFi settings, Email account settings, OS tweaks, Wallpaper, ringtones, notification, owner info, "my contact card" info, Facebook link with contact, messenger, windows live & facebook login/passwords, 3rd party application settings, etc... in less than 2 minutes!
I will attach my SASHIMI ini files to this post later on.
Thanks to:
bengalih for its great SASHIMI application
Mandragore for posting its INI files that helped me much and answering questions in other threads
murducky for its tuto on SASHIMI on Touch Pro
All XDA community, continue to share, share, share!
Exemple Config Files:
Here are my config files as an exemple:
filebackup.ini:
Code:
[Facebook]
FileBackupDirMode=Auto
info=\FacebookInfo.vol
[Opera]
FileBackupDirMode=Auto
Secure=\Windows\Opera9\secure\wand.dat
Skin=\Windows\Opera9\Skin\*.*
Cookies=\Windows\Opera9\cookies4.dat
Bookmarks=\Windows\Opera9\opera6.adr
Settings=\Windows\Opera9\opera.ini
[RSSHub]
FileBackupDirMode=Auto
channel=\Program Files\RSS Hub\ChannelData\Channels.opml
[Manila]
FileBackupDirMode=Auto
tabs=\Windows\26948339_manila
[Softwares]
FileBackupDirMode=Auto
HDTweaks=\Storage Card\Program Files\HD Tweak\HDTweak.xml
regexport.ini
Code:
[Manila]
RegExportDirMode=Auto
key1=HKEY_CURRENT_USER\Software\HTC\Manila
key2=HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher
key3=HKEY_LOCAL_MACHINE\Software\HTC\Manila\InternetPush\Enabled
key4=HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration
[Credentials]
RegExportDirMode=Auto
HTCAccounts=HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager
WindowsLive=HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Live
Facebook=HKEY_LOCAL_MACHINE\Software\HTC\FacebookSDK
[Keyboard]
RegExportDirMode=Auto
Language=HKEY_LOCAL_MACHINE\Software\Tegic\eT9
[System]
RegExportDirMode=Auto
TimeFormat=HKEY_LOCAL_MACHINE\nls\overrides
[Softwares]
RegExportDirMode=Auto
TotalCommander=HKCU\Software\Ghisler
ManilaTodayPage=HKEY_LOCAL_MACHINE\Software\Microsoft\ManilaToday
Scan2PDF=HKEY_LOCAL_MACHINE\Software\Scan2PDF
HDWallS=HKEY_LOCAL_MACHINE\Software\HDWallS
Messenger=HKEY_CURRENT_USER\Software\Microsoft\pMSN
FacebookApp=HKEY_CURRENT_USER\Software\Microsoft\Facebook
WindowsLive=HKEY_LOCAL_MACHINE\Services\Windows Live
customlinks.ini
Code:
[LNK Files]
ManillaTodayPagev0.4=\PROGRAMS\Settings\Manila
tasksplus151=\PROGRAMS\Tools
TotalCommander=\PROGRAMS\Tools
HD Tweak 0.5.4_English=\PROGRAMS\Settings\System
IrisBrowser=\PROGRAMS\Connectivity
MusicID=\PROGRAMS\Multimedia
CorePlayer v1.3.2a Build-6909 for PPC=\PROGRAMS\Multimedia
HDWallS_v0.24b=\PROGRAMS\Settings\Manila
Scan2PDF.Mobile.1.01=\PROGRAMS\Programs
MyPhone_Beta_WM_Professional=\PROGRAMS\Tools
FdcSoftTaskMgr3.1=\PROGRAMS\Tools
History:
07/20
Added Manila Stock Tab backup method.
Added shortcut creation to launch automatic and/or scheduled SASHIMI backup.
07/21
Added Manila Tab order in the list.
Added RSS Hub subscribed channels in the list.
07/26
Added custom application shorcut creation in 3c.
Modified automatic backup method in 4b (I didn't noticed SASHIMI quicklinks at first, in fact it is not needed to create your own backup shortcut since it's already in the quicklinks).
Updated intro/conclusion.
07/28
Added stuff to the list, thanks to crankshaft
08/02
Added extra RSS Hub backup information
The List
I will try to list here where settings are stored by most common applications. Each setting can be in a:
R -> Registry entry (to add in your regexport.ini file)
F -> File (to add in your filebackup.ini file)
System
Power settings: R
HKEY_LOCAL_MACHINE\System\CurrentControlSet\C ontrol\Power\Timeouts
Volume: R
HKEY_LOCAL_MACHINE\Software\HTC\VolumeOverlay
Screen calibration: R
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH
Regional settings: R
HKEY_LOCAL_MACHINE\reg
HKEY_LOCAL_MACHINE\nls\overrides
Time: R
HKLM\Time\TimeZoneInformation
HKCU\Software\HTC\Manila\WorldClock.*
Alarms: R
HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\0
HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\1
HKEY_LOCAL_MACHINE\Software\Microsoft\Clock\2
ActiveSync Settings: R
HKEY_CURRENT_USER\Software\Microsoft\ActiveSync
HKEY_CURRENT_USER\Software\Microsoft\ActiveSync\Partners
HKEY_CURRENT_USER\Software\Microsoft\ActiveSync\UnicodeMapping
Notification & Sounds: R
HKCU\ControlPanel\Notifications
HKCU\ControlPanel\Sounds
HKEY_CURRENT_USER\ControlPanel\SoundCategories
Manila
Tab order: R + F
F -> \Windows\26948339_manila
R -> HKEY_LOCAL_MACHINE\Software\HTC\Manila\Configuration
Programs tab: R
HKEY_LOCAL_MACHINE\Software\HTC\Manila\ProgramLauncher
Weather Cities + World Clock cities + other things (?) : R
HKEY_CURRENT_USER\Software\HTC\Manila
Clock and time format: R
HKEY_LOCAL_MACHINE\nls\overrides
Music Playlist: F
\Application Data\HTC\AudioManager_Eng\playlists\
My Contact Card: R
HKEY_CURRENT_USER\Software\HTC\People\OwnerInfo
Push Web Pages: R
HKEY_LOCAL_MACHINE\Software\HTC\Manila\InternetPush\Enabled
Stock Tab: F
\Application Data\HTC\*.*,*
Favorite Contacts: F
\PIM.VOL (Use SASHIMI->Tools->Additional Tools->Backup/Restore PIM)
Facebook and Youtube account: R
HKEY_LOCAL_MACHINE\Software\HTC\HTCAccountManager
Facebook links with contacts: F
\FacebookInfo.vol
TaskManager: R
HKEY_CURRENT_USER\Software\HTC\TaskManager
HTC X button settings:
HKEY_CURRENT_USER\Software\HTC\TaskManager
HKEY_CURRENT_USER\Software\HTC\TaskManager\ExclusiveList
HKEY_CURRENT_USER\Software\HTC\TaskManager\ExclusiveList\User
HKEY_CURRENT_USER\Software\HTC\TaskManager\Lite
HKEY_CURRENT_USER\Software\HTC\TaskManager\NoIconProcess
HKEY_CURRENT_USER\Software\HTC\TaskManager\TerminateProcess
Softkeys: R
HKLM\Software\HTC\Manila\HomeLSKPath
HKLM\Software\HTC\Manila\HomeLSKArguments
HKLM\Software\HTC\Manila\HomeLSKText
HKLM\Software\HTC\Manila\HomeRSKPath
HKLM\Software\HTC\Manila\HomeRSKArguments
HKLM\Software\HTC\Manila\HomeRSKText
Opera 9
Security stuff: F
\Windows\Opera9\secure\wand.dat
Skin: F
\Windows\Opera9\Skin\*.*
Cookies: F
\Windows\Opera9\cookies4.dat
Bookmarks: F
\Windows\Opera9\opera6.adr
Settings: F
\Windows\Opera9\opera.ini
Ringtones
Ringtones folder is backed up by Microsoft MyPhone:
\My Documents\My Ringtones
Association of ringtones with contacts is in:
\PIM.VOL (Use SASHIMI->Tools->Additional Tools->Backup/Restore PIM)
Keyboard
Keyboard Language: R
HKEY_LOCAL_MACHINE\Software\Tegic\eT9
RSS Hub
List of your channels: F -> if you change the settings and save the OPML file on the storage card, you don't need to backup this
\Program Files\RSS Hub\ChannelData\Channels.opml
Path of the channel list: R
HKEY_CURRENT_USER\Software\Ilium Software\RSS Hub
PPCPimBackup
Settings: R
HKEY_CURRENT_USER\Software\FdcSoft\PPCPimBackup
QuickGPS
HKEY_LOCAL_MACHINE\Software\HTC\QuickGPS
GAlarm
HKEY_CURRENT_USER\Software\ageye\G-Alarm
HKEY_CURRENT_USER\Software\ageye\G-Alarm\1
HKEY_CURRENT_USER\Software\ageye\G-Alarm\1\Playlist
HKEY_CURRENT_USER\Software\ageye\G-Alarm\0
HKEY_CURRENT_USER\Software\ageye\G-Alarm\0\Playlist
__________________
Thanks
Thanks for this. I've always wondered how i could back up everything to restore it after a rom update. Might take a bit of time to do, but once it's done i can flash away I think this should be made sticky.
Thanks a lot, I've recently asked a few questions about backing up settings, and this guide seems to answer a few of them. Something to do in the weekend!
Thank you so much ... subscribed!
Now i have a Thread i can refer to
I was tired to search and go to too many thread, each of them containing a piece of information... so I decided to include all in one big thread with a How To. I am still learning and will keep this thread updatted with my foundings. I am still building up my .INI, .REG and .XML files at the moment, I will share them as soon as I concider they are ready to be used.
Well I used a better 2 hours to study that stuff. I am no means computer illiterate - but it did take some time to realise how each of the stuff works.
And after taking the basic examples from the original author, I dumped the whole registry and browsed that thru for some stuff.
So I flashed from Miri's V23 to V25 and after connection setup ran the sashimi auto.
Some cabs were unfortunately not installed, some reg stuff was not changed. Haven't checked the file copies yet. But with the customemregs.ini and customfiles.ini I didn't have any errors when generating the lists with them.
Hmm... Have to take a look sometime again.
For example, my t-online email account did get configured - but pop3 gmail account did not get created at all.
abe
im gona spend 24hrs to read your masterpiece! cheers man! a great long article lol
An awesome guide - well done.
Perfect timing too as I've just become a 'flash junkie'
anssibragge said:
Well I used a better 2 hours to study that stuff. I am no means computer illiterate - but it did take some time to realise how each of the stuff works.
And after taking the basic examples from the original author, I dumped the whole registry and browsed that thru for some stuff.
So I flashed from Miri's V23 to V25 and after connection setup ran the sashimi auto.
Some cabs were unfortunately not installed, some reg stuff was not changed. Haven't checked the file copies yet. But with the customemregs.ini and customfiles.ini I didn't have any errors when generating the lists with them.
Hmm... Have to take a look sometime again.
For example, my t-online email account did get configured - but pop3 gmail account did not get created at all.
abe
Click to expand...
Click to collapse
Can you be more precise: how your INI files look like? What stuff didn't get changed in the registry? I am by no mean an expert, but maybe I can help.
For your emails account, all is done with makisu, maybe you made a mistake while answering makisu questions. I have a POP3 Gmail account and I also jumped from Miri v24 to v25 without problems
Thanks a lot. It's quite complicated.
Good work fella. I'd been hunting through the regisrty for thing I can add to Sashimi.
Here's what I'd come up with so far if anyones interested:
[TaskManager]
RegExportDirMode=Auto
key1=HKEY_CURRENT_USER\Software\HTC\TaskManager
[Single_Volume]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\VolumeOverlay
[Quick_GPS]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\Software\HTC\QuickGPS
[Power_Settings]
RegExportDirMode=Auto
key1=HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts
[GAlarm]
RegExportDirMode=Auto
key1=HKEY_CURRENT_USER\Software\ageye\G-Alarm
key2=HKEY_CURRENT_USER\Software\ageye\G-Alarm\1
key3=HKEY_CURRENT_USER\Software\ageye\G-Alarm\1\Playlist
key4=HKEY_CURRENT_USER\Software\ageye\G-Alarm\0
key5=HKEY_CURRENT_USER\Software\ageye\G-Alarm\0\Playlist
good work!
Well, my gmail-settings are...
Code:
<characteristic type="EMAIL2">
<characteristic type="{0b0c0a06-0907-0303-0b01-070804060806}">
<parm name="CONNECTIONID" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="SERVICENAME" value="Gmail Anssi" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="pop.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Anssi Bragge mobile" />
<parm name="AUTHNAME" value="xxx" />
<parm name="AUTHSECRET" value="xxx" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="FORMAT" value="2" />
<parm name="LINGER" value="0" />
<parm name="RETRIEVE" value="51200" />
<parm name="KEEPMAX" value="" />
<parm name="DWNDAY" value="30" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="0"/>
<parm name="812C000B" value="0"/>
</characteristic>
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
</characteristic>
The first email account was run halfway ok - but this second one not at all.
It is also a bit annoying, that I can only restore the most basic info, I can't change the behaviour what to do when deleting current message (show precious rather than show next), signature, the advanced server settings like leave message on server when deleting locally, ...
Or do I have to start searching for those again from the registry dump and add some parms myself in the xml code (I would assume so).
abe
instead of backing up the opml file for the RSS Hub,
if you are like me, who prefer to store the rss and opml files in the storage location, you can actually configure it accordingly in RSS Hub, and then backup the registry
HKEY_CURRENT_USER\Software\Ilium Software\RSS Hub
When you flash your ROM, just import this registry, your RSS list and content, are automatically displayed w/o having to reload the news again.
Even easier to back up RSS is to use the storage card for saving the status.
When starting RSS for the first time after the flash, say cancel for the initial "add channel", then go to options and change the save path to storage card, and when it asks if the current channels should be saved, say *No*, then the old status from the storage card will be returned.
abe
anssibragge said:
Well, my gmail-settings are...
Code:
<characteristic type="EMAIL2">
<characteristic type="{0b0c0a06-0907-0303-0b01-070804060806}">
<parm name="CONNECTIONID" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="SERVICENAME" value="Gmail Anssi" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="pop.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Anssi Bragge mobile" />
<parm name="AUTHNAME" value="xxx" />
<parm name="AUTHSECRET" value="xxx" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="FORMAT" value="2" />
<parm name="LINGER" value="0" />
<parm name="RETRIEVE" value="51200" />
<parm name="KEEPMAX" value="" />
<parm name="DWNDAY" value="30" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="0"/>
<parm name="812C000B" value="0"/>
</characteristic>
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
</characteristic>
The first email account was run halfway ok - but this second one not at all.
It is also a bit annoying, that I can only restore the most basic info, I can't change the behaviour what to do when deleting current message (show precious rather than show next), signature, the advanced server settings like leave message on server when deleting locally, ...
Or do I have to start searching for those again from the registry dump and add some parms myself in the xml code (I would assume so).
abe
Click to expand...
Click to collapse
This is not due to SASHIMI but to the Microsoft XML provisionning limited functionalities, so it is simply not possible to do that using XML and/or Makisu. If you want to backup this kind of settings you have to locate where it is stored in the registry (I assume it is in the registry) and then add the settings to a .REG file in SASHIMI/Auto/REG.
Apart from that I looked at your XML and it looks like mine except for some values like retrieve etc. Maybe try to remove space in your names (service name & name) because I haven't ones and I have no connection ID set, that's the only difference I can see.
My Gmail account looks like:
Code:
<characteristic type="EMAIL2">
<characteristic type="{00070100-0e04-0300-0b10-050a0c080d00}">
<parm name="CONNECTIONID" value="" />
<parm name="SERVICENAME" value="Gmail" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="pop.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="xxx" />
<parm name="AUTHNAME" value="xxx" />
<parm name="AUTHSECRET" value="xxx" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="xxx" />
<parm name="FORMAT" value="2" />
<parm name="LINGER" value="120" />
<parm name="RETRIEVE" value="2048" />
<parm name="KEEPMAX" value="0" />
<parm name="DWNDAY" value="3" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="0"/>
</characteristic>
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
</characteristic>
</characteristic>
@zenkinz: I have added your RSS Hub suggestion to the List, thanks.
Please continue to share your settings all !
anssibragge said:
Even easier to back up RSS is to use the storage card for saving the status.
When starting RSS for the first time after the flash, say cancel for the initial "add channel", then go to options and change the save path to storage card, and when it asks if the current channels should be saved, say *No*, then the old status from the storage card will be returned.
abe
Click to expand...
Click to collapse
no need just load the registry using sashimi or UC, and you can run RSS Hub w/o having a need to change anything.

[HELP] How to change icons and rearrange start menu when cooking?

Hi
I have spent the past couple of days cooking my own rom for personal use, and so far this forum have been a huge help. Thanks guys!
I have searched the forums, and google but have found no solution to my problem. I need a method to change the icons in my start menu, and deleting/adding links while cooking it into the rom.
Can anybody help me?
Cheers!
mxipupdate_projectdefault_a_000.provxml (new folders/subfolders also have to be in initflashes.dat)
mxipinit_startmenu_001.provxml (i only remove the search- and help-links)
the according numbers "900000XXX" can be used to define the order.
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Shell\StartInfo\Start\Today">
<parm name="Name" datatype="string" value="Startbildschirm" />
<parm name="Rank" datatype="integer" value="900000718" />
</characteristic>
<characteristic type="HKLM\Security\Shell\StartInfo\Start\Multimedia">
<parm name="Group" datatype="integer" value="1" />
<parm name="Icon" datatype="string" value="\Windows\HTC_multimedia.png" />
<parm name="Rank" datatype="integer" value="900000518" />
</characteristic>
..................
make sure you save it in utf-8-format.
one single error (or file/folder not found) within the provxml-file and it will be ignored at installation of rom.
you can rename the *.provxml to *.xml and doubleclick it to see where the errors are.
I made the changes to mxipupdate_projectdefault_a_000.provxml but it doesn't seem to be processed. I open it in IE as xml and there's no error.
what else could be wrong?
like i said... one single file/folder not present (initflashes.dat) and the provxml will be ignored. don't just check for format errors.
I find the best way is to use iniflashfiles.dat, create my folder structure and modify the existing apps to where I want. Then in SYS there are some provxml files like for Windows Live, Skybox etc. I make a copy of these and put in my operatorPkg folder and modify them to the folder I want. The file in OperatorPkg will overwrite the original.
bobsbbq said:
I find the best way is to use iniflashfiles.dat, create my folder structure and modify the existing apps to where I want. Then in SYS there are some provxml files like for Windows Live, Skybox etc. I make a copy of these and put in my operatorPkg folder and modify them to the folder I want. The file in OperatorPkg will overwrite the original.
Click to expand...
Click to collapse
ok looks like that's what I'll do.
do you know which package create the HTC shortcuts and the widget shortcuts?
zenkinz said:
ok looks like that's what I'll do.
do you know which package create the HTC shortcuts and the widget shortcuts?
Click to expand...
Click to collapse
The HTC shortcuts are created from Manila Core\0409 reg file. You can delete them if you don't want and change the reg setting for AutocreateShortcutEnabled to 0
for Widgets I never use them. I would like to know how to change these myself. Maybe someone else can help with this.

[HOW TO] Blacklist processes in WM

Hello,
I've got some windows mobile 5 handhelds that I'm running in kiosk mode. One of the applications that can be run from the kiosk has the ability to access Internet Explorer. I want to be able to disable internet explorer so even when the user tries to access this feature, IE will not pop-up.
From what I've seen while searching on google, there is no direct way to remove PIE or even disable it. I've searched ways to black list programs and found this link here: http://www.satter.org/2007/03/lets_shell_some.html. This seems like it would work. It's a registry fix but I can't seem to get the .CPF file to update the configuration on the handheld. The error I get is 'your device settings cannot be changed by Test.cpf'. I assume I need to sign the .CPF file but I am unsure how to do this exactly...
Any thoughts if this will work or other methods???
Thanks!
Zac
Ok so after looking into this further I learned the certificates in the WM5 and 6 SDK folders are outdated. I downloaded newer certificates and installled the updated certs.sdk to the handheld but the cpf file still will not work. The error now is: 'The program or setting could not be installed because it is not digitally signed with a trusted certificate.' The updated certs I got are all trusted (I think). The cert I am using is SDKSamplePrivDeveloper.pfx.
Nevermind, got it to work. I didn't need to do any signing at all, just needed to remove some not needed XML in my _setup.xml file.
For what it's worth, here's the XML to blacklist an application (in this case PIE):
Code:
<?xml version="1.0" encoding="utf-8" ?>
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Shell">
<parm name="DisallowRun" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun">
<parm name="1" value="iexplore.exe" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Well done, solved your problem yourself, and in the mean time a new guide generated for people who wanted to do this.
Thansk
madnish30.
hi,
thanks for this tweak very interesting but i'm on WM 6.5.5 Titanium Energy Rom and there is no _setup.xml, can not find it so can not do this tweak or i missed something , could you help, be more explicit...
Second question, is there a possibility to know exactly witch applications, process are launch when windows start?
Thanks
V.
MakeCab Tutorial
voyd said:
hi,
thanks for this tweak very interesting but i'm on WM 6.5.5 Titanium Energy Rom and there is no _setup.xml, can not find it so can not do this tweak or i missed something , could you help, be more explicit...
Second question, is there a possibility to know exactly witch applications, process are launch when windows start?
Thanks
V.
Click to expand...
Click to collapse
Hello,
You create an XML file on your PC called _setup.xml and use makecab.exe that comes with the WM5/6 SDK from the command line to create a CAB file.
But, to make life simpler, I've attached this zip file which has makecab.exe, my _setup.xml, and also a task manager program you can run on WM that I've downloaded (it has a registry editor built into it too, which is convenient ).
To use:
1) Make any changes you need to _setup.xml
2) Run makecab.exe from the command line with this syntax: "makecab _setup.xml <'filename'.cab>"
3) Install this on the handheld, reboot device, run the program you've blacklisted and enjoy the access denied pop up!
Blacklist _setup.xml:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Shell">
<parm name="DisallowRun" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun">
<parm name="1" value="iexplore.exe" datatype="string" /> <!-- change 'value' to whatever program you want blacklisted -->
<!-- <parm name="2" value="ANOTHER_PROGRAM.exe" datatype="string" /> -->
<!-- <parm name="3" value="YET_ANOTHER_PROGRAM.exe" datatype="string" /> -->
</characteristic>
</characteristic>
</wap-provisioningdoc>
Disable Backlist _setup.xml:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Disable DisallowRun -->
<characteristic type="HKLM\Security\Policies\Shell">
<parm name="DisallowRun" value="0" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
To answer your second question, most startup programs will be listed under the /Windows/StartUp folder.
Hope this helps!
madnish30 said:
Well done, solved your problem yourself, and in the mean time a new guide generated for people who wanted to do this.
Thansk
madnish30.
Click to expand...
Click to collapse
Thank you! Glad to help out!
another alternative
Hello people,
Here's another alternative which does not involve making cab files / fiddling with the registry (not all devices support this, since they are ROM_hardcoded);
WM5/6 command DONOTHiNG.EXE copy to device make shortcut link to Program Files
http://www.stephan-brenner.com/?p=190
Rename iexplore.exe to *.bak
Copy donothing.exe to \Windows\
Rename donothing.exe to iexplore.exe
done
Of course there are 101 other wonderfull 'solutions' to think of using donothing.exe
ThanX a ton for these wonder full wapprovisioning xml
FYC:
WinCE CAB Analyzer (MSCEInf): .CAB extraction
ExtenDir CABS .CAB creation (PgDn a bit) (optionally ExtenDir should be switched off if you're not using it!! )
Converting packages or your favorite tweaks to a setup cab was never so easy!
o/~
Senax said:
Hello people,
Here's another alternative which does not involve making cab files / fiddling with the registry (not all devices support this, since they are ROM_hardcoded);
WM5/6 command DONOTHiNG.EXE copy to device make shortcut link to Program Files
http://www.stephan-brenner.com/?p=190
Rename iexplore.exe to *.bak
Copy donothing.exe to \Windows\
Rename donothing.exe to iexplore.exe
done
Of course there are 101 other wonderfull 'solutions' to think of using donothing.exe
Click to expand...
Click to collapse
This method does work, the only concern I had with this was what if an administrator needs to get have access to that program that is overwritten? In my case if I overwrote iexpore.exe then I'd have no way of accessing the internet or downloading any vital programs (unless they were already installed before hand). My device had no way to USB connect and bluetooth file transferring was becoming a pain to get to work so that's why I used the CAB method downloading them first through PIE from a virtual directory then disabling PIE.
But hey, if you're sure you won't need PIE or any other program you want disable this method works great!
Thanks!
Or Batch iT
Why not make a batch file? Use a standard ASCII editor like Notepad.exe and copy + paste the following code (assuming running from C drive). Make sure Word-Wrap = OFF (always while editing (source))!
Code:
@ECHO OFF
@REM renaming of blacklisted application(s) back to original so one can operate executables as expected
C:
CD\
CD Windows\System32\
@REM Remember the short 8.3 filename (stick to that within batch files).
REN YourExecutable.exe donothin.exe
@REM Assuming you renamed original *.exe to *.e_e
REN YourExecutable.e_e Depends.exe
@REM Need to switch drives/partition? Just type its letter D: [ENTER] CD\ [so windows its current PATH is the root of the current drive].
:END
EXiT
Online DOS_Batch handbook
Senax said:
Why not make a batch file? Use a standard ASCII editor like Notepad.exe and copy + paste the following code (assuming running from C drive). Make sure Word-Wrap = OFF (always while editing (source))!
Code:
@ECHO OFF
@REM renaming of blacklisted application(s) back to original so one can operate executables as expected
C:
CD\
CD Windows\System32\
@REM Remember the short 8.3 filename (stick to that within batch files).
REN YourExecutable.exe donothin.exe
@REM Assuming you renamed original *.exe to *.e_e
REN YourExecutable.e_e Depends.exe
@REM Need to switch drives/partition? Just type its letter D: [ENTER] CD\ [so windows its current PATH is the root of the current drive].
:END
EXiT
Online DOS_Batch handbook
Click to expand...
Click to collapse
Nice! Very simple to use!

Categories

Resources