FORUMS
Remove All Ads from XDA

Registry workshop question?

7,972 posts
Thanks Meter: 1,154
 
By Laurentius26, Inactive Recognized Developer on 25th March 2007, 11:54 AM
Post Reply Email Thread
Hi,

I would appriciate if somebody could help me with the following.
Currently I'm trying to build my own wm6 rom and conversion off roms is no problem for me anymore.
Next step is changing and comparing registry hives but I'm stuck a little!
The registry hives I'm talking about are:

-default.hv
-user.hv

I downloaded RGUCOMP and also have the Registry workshop.
What I'm trying to figure out is how can I convert *.hv files to files to working registry string so that I can edit and compare them with the Registry workshop.

I do know this but don't understand:

dump default.hv:
1. SET _FLATRELEASEDIR=.
2. RGUCOMP -o default.hv -nologo > default.txt
3. Add 'REGEDIT4' (first line)
4. Last line MUST be empty
5. Save as UNICODE
... edit the txt file ...
build default.hv:
1. rename default.txt to boot.rgu (same folder as RGUCOMP.exe)
2. SET _FLATRELEASEDIR=.
3. RGUCOMP -b
4. rename boot.hv to default.hv

Enter this: "RGUCOMP -o default.hv -nologo > default.txt
", 'you should not see the reg entries, because "> default.txt" redirects the output to default.txt '.

Is there no solution to convert a *.hv file to a working registry string *.reg?

Or maybe there is a solution to export the registry from my device and convert it to a *.hv

I'm new to this and any help would be higly appriciated!

Greetings, Leo
 
 
25th March 2007, 12:32 PM |#2  
Leies's Avatar
Member
Flag HK
Thanks Meter: 5
 
More
after :
RGUCOMP -o default.hv -nologo > default.txt

you'll see default.txt contain all the regkey.

since default.txt doesn't contain the first line 'REGEDIT4',
so you need to add it.

it's same in user.hv
25th March 2007, 02:00 PM |#3  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
Won't get it
Hi Leies,

Thank you for your reply,
still don't understand, do I have to name the file REGEDIT4 .txt after created, or the first line in the opend textfile must be REGEDIT4, and what about the empty line, do I tab twice [ENTER] to have that and save the textfile in unicode? Sorry I'm stupid, but I just don't get it, it stays blank, weird? Can you send me a sample so I can see please?

Greetings Leo

Quote:
Originally Posted by Leies

after :
RGUCOMP -o default.hv -nologo > default.txt

you'll see default.txt contain all the regkey.

since default.txt doesn't contain the first line 'REGEDIT4',
so you need to add it.

it's same in user.hv

25th March 2007, 02:08 PM |#4  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
one more question
Can I create a subdirectory for this c:\hv files\.. and place the boot.hv and user.hv together with rgucomp files in here, or should it be in c:\..

Thanks,

Leo
25th March 2007, 05:09 PM |#5  
Leies's Avatar
Member
Flag HK
Thanks Meter: 5
 
More
not name the file, it's add at the first line..

did you got the dump folder already ?
default.hv and user.hv are in dump folder after you have extracted imgfs_raw_data.bin by viewimgfs.exe . (maybe different when you use other tool)

rgucomp -o dump\default.hv -nologo > default.rgu (or default.txt as you like)

then, default.rgu will stored in rgucomp.exe same folder, not at dump folder.
25th March 2007, 05:34 PM |#6  
naboleo's Avatar
Senior Member
Thanks Meter: 62
 
More
It may help, just try for dumping default.hv:
Quote:

1. SET _FLATRELEASEDIR=.
1b. echo REGEDIT4 > default.txt
2. RGUCOMP -o default.hv -nologo >> default.txt

No need the 3rd original step and you should be able to open default.txt with notepad
25th March 2007, 06:21 PM |#7  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
Lightbulb
Hi,

Thanks for your answer.
Still don't work, this is the error:

wmain: (RGUComp) !ERROR release directory ".echo REGEDIT4 " does not exist

What am I doing wrong?

Please, please, help.

Leo

Quote:
Originally Posted by naboleo

It may help, just try for dumping default.hv:
No need the 3rd original step and you should be able to open default.txt with notepad

25th March 2007, 06:26 PM |#8  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
Thumbs up *.hv
Hi thanks again

Will try tomorrow, today I'm having my birthday party

Greetings, Leo

Quote:
Originally Posted by Leies

not name the file, it's add at the first line..

did you got the dump folder already ?
default.hv and user.hv are in dump folder after you have extracted imgfs_raw_data.bin by viewimgfs.exe . (maybe different when you use other tool)

rgucomp -o dump\default.hv -nologo > default.rgu (or default.txt as you like)

then, default.rgu will stored in rgucomp.exe same folder, not at dump folder.

25th March 2007, 10:20 PM |#9  
naboleo's Avatar
Senior Member
Thanks Meter: 62
 
More
Did a bat command sample file. Just rename it *.bat instead os *.bat.txt and run it. It should create both user and defaut registry and open them directly in notepad.
Btw : happy birthday !
Attached Files
File Type: txt sample.bat.txt - [Click for QR Code] (180 Bytes, 86 views)
26th March 2007, 08:51 AM |#10  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
Thumbs up Found it
Hi,

Thank you Naboleo and Leies

1. set _flatreleasedir=c:\dump
2. RGUCOMP -o default.hv -nologo > default.txt
3. RGUCOMP -o user.hv -nologo > user.txt

Both added first line REGEDIT4, last line empty and saved as unicode!

Done

I'm sooooo happy

Greetings Leo
26th March 2007, 03:42 PM |#11  
Laurentius26's Avatar
OP Inactive Recognized Developer
Thanks Meter: 1,154
 
1010
Donate to Me
More
Exclamation Again another question
Hi,

I'm making you grazy I know but this is realy important for me, Im almost there building the rom.

Currently I'm busy with RGUCOMP, I converted user.hv to a user.txt file and edited the strings (just some ringtones to delete), now I'm trying to convert back but it doesn't work, it gives some errors.

build user.hv
1. rename user.txt to boot.rgu
2. SET _Flatreleasedir=c:\dumphv (this is my dir)
3. RGUCOMP -b
4. rename boot.hv to user.hv

The errors:

Buildboothive: <RGUCOMP> !ERROR unable to find required source file "Boot.rgu"

ERROR C:\MacB\private\winceos\COREOS\filesys\reg\reghive \.hive c line 877: FS: Registry Exception Handler

wmain: <RGUCOMP> !ERROR failed building BOOT hive

It makes me grazy haha...

Any ideas


Thanks again,

Leo
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes