PDA

View Full Version : Rebuild Cab from XML - as long as waiting for UC customizing


papamopps
07-02-2008, 09:20 PM
Hi - as long as we are waiting for some cook to provide a ROM with UC customizing.... take a look here:

http://www.gpcarreon.com/rebuildcab/


to make a cab out of a .xml file with all your customs settings like here as an example....


http://forum.xda-developers.com/showpost.php?p=1896955&postcount=2

Good luck!


Quted from Sleuth:

Registry CSPs

Within the registry type, I set a lot of cool stuff. You should be able to firgure out how it works if you have basic registry skills. Essentially, setting values for any registry key looks like this:
Code:

<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="BatteryTimeout" value="240" datatype="integer"/>
<parm name="ACTimeout" value="360" datatype="integer"/>
</characteristic>

First you set the key with the <characteristic type> tag, then you set values with the <parm name> tags. Binary values are a PITA since they're encoded Base 64 (see my entry for Owner Information above). If you want to set owner information as I did in the example, then you need to convert Unicode to Base64. Post here if you want to learn how and I'll show you how I do it.

le_hades
08-02-2008, 02:01 AM
This is also somewhat related with the topic we talked about here:

http://forum.xda-developers.com/showthread.php?t=359311

editing existing "regular" cabs to keep them as pre-modified custom ones.

You have to rename:

windows\HTCHome.dll.0409.mui
windows\HTC_HDlg.exe.0409.mui
windows\HH_0409_WeatherCities.xml

to your locale variable (if your rom isn't wwe), in my case it's spanish (0C0A):

windows\HTCHome.dll.0C0A.mui
windows\HTC_HDlg.exe.0C0A.mui
windows\HH_0C0A_WeatherCities.xml

It worked for me.

There's another way to do it, harder but way better, i usually do this with my own cabs because after a hard reset i don't like having to change everything again. Steps:

1- Decompress the cab with winrar

2- Edit the file "setup.xml" and correct things you want to change about installation setup: name of files to install (like in this case), name of registry variables to write (like in 10-button commanager for wing), etc

3- Find and download "Cabpack 1.4", be sure to use the following options for it to work: "compression type = mszip", "Create cabinets for = 16 bit extractor"

4- Use it for re-compressing your modified cab and install.

5- Voilá... great pre-modified cabs that you can keep for the next hard-reset.

Hope you like it. Regards



Theres no limit of the things you can do with a little patience and xml editing.

Enjoy it :D