Customizer.CAB - Registry changes in .reg instead of .CAB - MDA III, XDA III, PDA2k, 9090 Software Upgrading

When installing Customizer.CAB you will also install any .reg file found in Extended Rom. This way you don't have to make CAB's for simple registry changes. You can now quickly create .reg files to be included at hard reset.
.reg files in the following directories will be applied to registry:
\Extended_Rom
\Extended_Rom\REG
\Storage Card\Extended_Rom
\Storage Card\Extended_Rom\REG
\Storage Card\EXTROM
\Storage Card\EXTROM\REG
this way it will work with most of the custom WM5 versions.
How to use:
Add Customizer.CAB to your extended rom and add the appropriate line in Config.txt (CAB: \<extended rom>\Customizer.CAB
Then copy .reg files to any of the locations above.
Example of how to track changes in registry and create a .reg file:
1 - Use PHM RegEdit to export everything in registry to a new .reg file
2 - Make the neccesary changes to your device (Owner data, etc..)
3 - Use PHM RegEdit to export everything in registry to a new .reg file
4 - Transfer the two .reg files to your computer
5 - Use RegDiff (http://hp.vector.co.jp/authors/VA000007/regdiff.htm) to compare the two files and create a diff .reg file
6 - Remove unneccesary keys from the diff file (like state, date...)
7 - Transfer the diff .reg file back to your device
Hope someone will find this useful.

Related

[WM5] compressed CABs - supported :)

I've found, that WM5 supports compressed CABs.
Use CabWiz to make compressed CAB.
Edit file cabwiz.ddf (in the same directory, where cabwiz.exe exists)
modify line ".Set Compress=OFF" to ".Set Compress=ON"
Warning1:
Don't delete original [uncompressed] CABs. Maybe - you will need them in the future.
Warning2:
Compressed CABs are not compatible with WM2003
Warning3:
Don't edit nor don't save them with WinCE CAB Manager from ocpSoftware [up to version 1.1.0.4]. Everything looks OK, but [after save] all files within the CAB are corrupted.
Probably the reason is, that compression aplies only to files, not CAB as a whole. File structure is the same and CAB Manager properly reads all info, but is not able to decompress files.
-----------
If you have only cab and need to compress it:
Open CAB with WinCE CAB Manager
Select from menu: File / Export / ExportToINF
start command line
switch to the directory with INF file
execute "[path]cabwiz xxx.INF /err cabwiz.err /cpu arm" (replace [path]cabwiz with full path do cabwiz.exe, replace xxx.INF with INF file name)
-----------
I you have EXE installer only:
start PC installation
cancel Pocket PC installation
look at subdirectories of C:\Program Files\Microsoft ActiveSync - probably you will find (uncompressed) CABs here.
FWIW, the next version of WinCE CAB Manager will include support for compressed CAB files as well. In fact, this is already available in the WinCE CAB Manager 1.2 BETA. See also:
WinCE CAB Manager 1.2 BETA Available To Registered Customers

Personalising ROM's... without Ext_ROM

Okay, there a couple of CAB files I install no matter what ROM I use (Total Commander, Today Screen Speed Dial, MortRing [by .exe], Morphy's Call Filter etc), now that I'm getting to grips with the whole ROM building thing I have a question:
How can I add a program installed via a CAB into a ROM so that it is installed into ROM, I've searched on the forum and can't find much. I know it can be done as ROM's such a TuMa's, Logout's and Ivan's have apps in ROM which aren't there by default...
EDIT: In addition, I overwrite some of the default ROM stuff once I've installed (ETEN M600 Dialler in particular), so again, how can I get the 'bits' out the cab and overwrite the default contents of the ROM, this would make my life much easier...
If this has been posted previously then please point me in the right direction
First extract files, shortcuts and registry entries from the .cab using wince cab manager or similar http://www.ocpsoftware.com/, take note on what directory each file/shortcut is in. (often more reg entries will be stored as a file called 'platformxxx.reg' use these too)
Normal rom edit way: add the contents of the exported .reg files to default.rgu, making sure that you leave a blank line on the end, copy all the files to the \dump directory and edit initflashfiles.dat to copy them to the right directory on first boot. (remeber to remove the first two bytes - ff fe with a hex editor). then build your rom!
Bepe's rom edit way: create a folder '[your software name]' in the oem folder and get yourself a guid from here http://kruithof.xs4all.nl/uuid/uuidgen. create a blank file called '[yourguid].dsm and a blank text file called '[yourguid].rgu'. add the contents of the exported .reg files to '[yourguid].rgu' and make sure you save as unicode. then copy all the other files to the folder and create a blank unicode txt file called 'initflashfiles.txt' and use it like initflashfiles.dat in the first method except there is no need to hex edit out the first two bytes. then build your rom!
midget, you're a star, I thought it may be something simple... I'm off out with the family now for the day, but I'll work on this later, cheers!

Cooking a rom...

Hi, I followed the thread: "How to reconstruct a dumped ROM"... (obviously I had, before, did a rom dump!). Now I have a directory named "dump" with several subdirs.
In the step 3) there is written: "After this step you can optionally edit the OS files with the proper tools"... now the question is: what are these proper tools? I searched in the forum, in the other threads but I didn't find anything... My needs are: to delete some programs that are in the rom (for example Pocket Word, Pocket Excel, other..) in order to obtain more space, but to install other tools at the free space.
Thanks in advance for your help....
Great question ! i can't help you , but i wait for answers ....
I asked the same thing the other day, and got an answer(thx again to him).
Actually, I'm doing it right now, as a test I've successfuly dumped and rebuilt lsvw's rom using enhanced imgfs tools batch files, nbdump.bat nbname.nb & nbbuild nbname.nb, now I'm removing files from the rom and maybe add some other, like that quick gps thingy, latest msn(optimized for trinity, removed vga resources), phone pad, and some other thing on my custom extrom.
I had the same doubt as you, but it seems that we're overcomplicating things, you can simply use the file explorer to remove files from that dir, beware of which files you remove/alter.. initflashfiles.dat has some operations to be done after flashing the device(creating folders,renaming files, moving them to startup/start menu/etc folders), I thought that if the file didn't exist on the windows folder, whatever invoques initflashfiles.dat would crash, but it doesn't seem to be the case, I haven't put this to test, but I've found several missing files on the initflashfiles.dat(and a typo, "floder", go figure what it means - lazy/rushed editing IMO), so there seems to be some tolerance to the operations contained in that file.
I won't edit the wiki until I'm 100% sure that what I know is correct, but to sum it up:
dump the files
add/delete files with explorer
edit the registry using rgucomp
edit initflashfiles.dat using the original windows notepad & use an hexeditor to remove the 1st 2 bytes
run NBBuild.bat to create the *.nb file
OSchecker.exe to validate the *.nb file
nbhtool.exe to create the nbh
flash it(I prefer the sd card method)
Code:
rgucomp needs setting _FLATRELEASEDIR environment variable to current directlry like this:
set _FLATRELEASEDIR=.
Dump default.hv/user.hv file to .reg with:
rgucomp.exe -nologo -o default.hv > default.reg, then add line "REGEDIT4" to the beginning of REG file.
Modify the .reg file to your liking, (save it in UTF-16 with CR+LF terminations and a new line at the end of the file) and convert it back to .hv
And don't forget to flash Olipro's Hard SPL before, it may save your device.
"and convert it back to .hv"
http://forum.xda-developers.com/showpost.php?p=1186635&postcount=1
(no wonder I didn't find this info, forum search is almost useless, googled for rgucomp and voilĂ , first result(above) right answer)

A Question for cabfile or package creator

Do you know how can I put my name and my registration code into my package ( for kitchen) or how can I put them into the cab file so I dont need to type the code everything I do the hardreset. THX
If your software keep the reg info in the registry, just add this key to your package's rgu; if on the other hand the info is in a file, just add the file and don't forget to add the file into initflashfiles
adwinp said:
If your software keep the reg info in the registry, just add this key to your package's rgu; if on the other hand the info is in a file, just add the file and don't forget to add the file into initflashfiles
Click to expand...
Click to collapse
How can I know which one in registry, which one in the file. Please let me know.
For example resco explorer I can not find where is the key storaged
Thx so much
Please anyone. Anyone can help?? THX SO MUCH
etenx500 said:
Please anyone. Anyone can help?? THX SO MUCH
Click to expand...
Click to collapse
Some one plz
etenx500 said:
Some one plz
Click to expand...
Click to collapse
use this software WinCE CabManager:
http://www.ocpsoftware.com/products.php?nm=cecabmgr
if u want further help u can mail me or PM.
Functions are:
Open Existing Cabinet Files
Open any Windows CE CAB file, as well as Smartphone and Pocket PC theme files.
Create New Cabinet Files
Allows you to create a brand-new CAB file, add the Windows CE files, shortcuts and registry entries needed to install your application, and then save the new CAB file to disk.
Modify Cabinet Information
View and modify general information about the Windows CE CAB file, such as the name of the company and of the application, processor and operating system version required to run the application, and the default installation directory.
Modify Windows CE File Entries
The Windows CE files stored in a CAB file can be viewed and modified, and new files can be added. You can change the order in which the files will be installed, the location where each file will be installed, and more.
Modify Shortcut Entries
The shortcut entries stored in a CAB file can be viewed and modified, and new shortcuts can be added. You can change the location where each shortcut will be installed, the name and target of the shortcut, and more.
Modify Registry Entries
The registry entries stored in a CAB file can be viewed and modified, and new entries can be added.
Modify Setup DLL Information
You can view information about the Setup DLL included in a cabinet, or add a new Setup DLL to the cabinet.
Full Drag and Drop Support
Use your mouse to quickly and easily add and extract files between WinCE CAB Manager and any other application that supports "Drag and Drop", such as Windows Explorer.
Full Copy and Paste Support
Quickly and easily add and extract files between WinCE CAB Manager and any other application that supports "Copy and Paste" operations, such as Windows Explorer.
Import/Export Windows CE INF Files
Automatically generate and load CAB files from your existing Windows CE INF files, or use the WinCE CAB Manager to edit the CAB files and then generate an INF file for use with automated builds.
Automation Support
The WinCE CAB Manager exposes a COM Automation interface which allows it to be manipulated from other programs, such as Visual Basic or even VBScript.
Support for Third-Party "Add-Ins"
The WinCE CAB Manager functionality can be expanded through the use of COM-based "Add-Ins".

[Q] Registry hive not saving changes

Hi i'm trying to change one key in particular for a build of Windows Mobile 6.5.5 Build 23569
I'm having trouble editing the default.hv registry hive. Basically i'm looking to implement registry changes prior to cooking the rom.
My process has been;
Copy default.hv (from SYS/metadata) to rgu-hv tool directory
Convert file to rgu
rename to .txt
add REGEDIT4
Make the following change;
GLYPHCACHE size to 16384
Save to .RGU, unicode.
Convert back to default.hv, At this point i've checked with HV editor that the entry has been changed correctly.
Reinserted into sys/metadata.
Flashed, And the registry entry is back to 8192.
What am i doing wrong? Is this the wrong default.hv or .rgu file to edit or is this key uneditable?
Thanks
[SOLVED]
Found out why it isn't saving, There is a duplicate entry in the following location, perhaps overwriting the original, Or maybe these are a prior extraction of default.hv.
In my case the location was 0409\Base_Lang_0409
and the file - 813fd1d1-ca6f-4b6d-96d2-c97fb99bd535.rgu
Once changed in this rgu. the change sticks and can be viewed by CeRegEditor.
Stoked

Categories

Resources