Whats wrong with this rgu file? - General Questions and Answers

Hey there!
Iam relatively new to this cooking world so i have a question.. I want to make some registry entries that changes the colour of the selection in enlarge start menu and the taskmanger.. but for some reason it doesn't work..
I have made a OEM package containing some few regtweaks.. Some of those reg tweaks simply doesn't work! If i check the registry afterwards i have flashed the rom, they just haven't been created, while some of the reg tweaks from the same oem package has.. Iam talking specifically about these 2:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\HTC\EnlargeMenu]
"ManilaCustomHLUp"=dword:66
"ManilaCustomHLDown"=dword:CC
[HKEY_CURRENT_USER\Software\HTC\TaskManager]
"ManilaCustomHLUp"=dword:66
"ManilaCustomHLDown"=dword:CC
[HKEY_LOCAL_MACHINE\Security\Policies\Policies]
"0000101a"=dword:00000001
The file here is saved as Unicode .. The last reg tweak works but the others doesn't .. I have no idea why.. They simply doesn't exist if i check afterwards i flashed the rom .. Any ideas?
~D

Your values just aren't right, you need to find the correct decimal value for the color you want. For example black would be FFFFFF in hex, orit would be 16777215 in decimal value .

You need to see the log file,.
Then see, which line give you the error,.
Beside saving as a UNICODE, then you need to add one empty space in the bottom,.
Hope this help,.

-G- said:
You need to see the log file,.
Then see, which line give you the error,.
Beside saving as a UNICODE, then you need to add one empty space in the bottom,.
Hope this help,.
Click to expand...
Click to collapse
The documents does allready have an empty line at the buttom..
But do i have to enter the values in decimal? As i have entered them in HEX.. ?
Thanks for your help untill further..
~D

If your cooked ROM flashes OK, and cooked properly for that matter to begin with, then there might not be anything wrong in this RGU file.
What might be happening is somewhere else in another RGU file these reg entries are being deleted.
(i.e., might be in a subsequently processed RGU other reg entries of the same key but starting with [-HKEY ... vs. [HKEY ...take note of the minus sign '-' at the beginning of the reg key entry)
What are you building the OS with? Are you using HyperCore Kitchen with BuildOS program? If so watch the bottom and look at all folders/packages that get processed after the one you made that contains these REG entries. Then check all RGU packages that you note are progeccesd afterwards.

Thread Moved to Q&A Forum
Other Member's Please DO NOT answer to question in the Dev&Hack Forum!

Related

palm threader to OEM package

hello all....ive been looking around for a way to make the Palm Threading cab into an oem package. idk if its possible or not but from what ive seen its way beyond me considering how the app integrates itself into the os. another reason why idk if its possible or not.
the reason why i want to do with is bc i really like the palm threading app...but i find it that it majorly decreases the speed of ur wizard for some reason or another. all i use my phone for is calling and txting so if i had this as an oem package i could cook my rom and hopefully it would not slowdown the overall system...idk if its possible or not.
thanks before hand!...and yes i have done alot of searching on this....lol
o and sry if im completly retarted in thinking all this lol
it might be possible, but you need to provide a cab
cab
alright ill pm u the link. bc i no ppl got in trouble for posting the cab b4
Did anyone ever get the MMS feature wokring on a Wizard???
i was able to create a OEM package for this program...but it doesnt work when building the rom.
when i try to build i get an error
"The target file "temp\dump\htmlnote.dll" is a directory, not a file."
i never got the initflashfile generator program to work so i had to create my own
initflashfile if that matters. here is a copy
;==========================================================================
;==========================================================================
; Application bib for Palm SMS Threader
;==========================================================================
Directory("\Windows"):-Directory("Palm Messaging")
Directory("\Windows\Palm Messaging"):-File("tpcutil.dll","\Windows\tpcutil.dll")
Directory("\Windows\Palm Messaging"):-File("htmlnote.dll","\Windows\htmlnote.dll")
Directory("\Windows\Palm Messaging"):-File("mailtrns.dll","\Windows\mailtrns.dll")
Directory("\Windows\Palm Messaging"):-File("mdsmailsvc.dll","\Windows\mdsmailsvc.dll")
Directory("\Windows\Palm Messaging"):-File("MsgMnuExt.dll","\Windows\MsgMnuExt.dll")
Directory("\Windows\Palm Messaging"):-File("MsgMnuExt_enUS.dll","\Windows\MsgMnuExt_enUS.dll")
Directory("\Windows\Palm Messaging"):-File("poutlook.exe","\Windows\poutlook.dll")
Directory("\Windows\Palm Messaging"):-File("tkitapp.exe","\Windows\tkitapp.exe")
Directory("\Windows\Palm Messaging"):-File("tmail.exe","\Windows\tmail.exe")
Directory("\Windows\Palm Messaging"):-File("tmailutl.dll","\Windows\tmailutl.dll")
Directory("\Windows\Palm Messaging"):-File("tmarshaller.exe","\Windows\tmarshaller.exe")
Directory("\Windows\Palm Messaging"):-File("pimgdll.dll","\Windows\pimgdll.dll")
Directory("\Windows\Palm Messaging"):-File("webview.dll","\Windows\webview.dll")
Directory("\Windows\Favorites"):-File("Inbox.Ink","\Windows\Inbox.Ink")
Directory("\Windows\Programs"):-File("Inbox.Ink","\Windows\Inbox.Ink")
;==========================================================================
; END Application bib for Palm SMS threader
;==========================================================================
and i also made the .rgu file with the help of the cab analyzer
if anyone can help it would b great appreciated, im using a base rom with no other OEM packages. if any one needs the palm threader cab let me know. thanks
The issue is that this overwrites a currently existant file. Chec that portion out. I have been attempting to get this working along with Arcsoft since the mms ability does not work with this application.
ya ur right...i went through the sys folder and deleted the files as the error would appear and made it oem build process but then got an error could not create default.hv and user.hv. does this mean i screwed up in my .rgu file?
i made the .rgu file in textpad and just copied the regestry intres from the cab manager and saved as unicode
i have linked it below
and yes i this process doesnt really and OEM package bc u cant just drag and drop it in...im just seeing if i can make a rom with the palm app preinstalled,
thanks again for the help
Based on your intitflashfile.txt file you provided, these duplicate named files are not really duplicates (as it appears you are moving them to \Windows\Palm Messaging (I assume this is how the cab does this?). If thats the case, then don't rememove the original versions from the rom. Instead prefix all of the files (or the duplicate ones at least) in your package with palmmessaging_ or pm_ or somesuch to make them unique. Then in your initflashfile.txt you would do something like this:
Code:
Directory("\Windows\Palm Messaging"):-File("htmlnote.dll","\Windows\palmmessaging_htmlnote.dll")
By doing this, both files can exist in the \Windows folder, but then when it moves it to true destination it will then be renamed to the correct name that that app expects.
Personally, I hate putting stuff in my roms where you have duplicates of the files in both \Windows and then in some other directory. Seems like such a waste (but you have to do that sometimes based on what you are trying to make into a package).
Hope that helps.
jug6ernaut said:
ya ur right...i went through the sys folder and deleted the files as the error would appear and made it oem build process but then got an error could not create default.hv and user.hv. does this mean i screwed up in my .rgu file?
Click to expand...
Click to collapse
As for your rgu, get rid of all the spaces! Example:
Code:
[HKEY_CURRENT_USER\ControlPanel\Notifications\{283E0018-E5C9-44e4-9864-4C4A3DED3BC3}]
"EventType" = dword : 00000002
should look like:
Code:
[HKEY_CURRENT_USER\ControlPanel\Notifications\{283E0018-E5C9-44e4-9864-4C4A3DED3BC3}]
"EventType"=dword:00000002
I'm not sure if thats specifically the problem you have, but thats the first fix I'd do, as I don't think it likes things to be pretty
oh, here's another couple of problems I just noticed:
Code:
"AppName" = "\Windows\messaging.exe"
should be
Code:
"AppName"="\\Windows\\messaging.exe"
You have to use double backslashes in the .rgu file for the backslash to show up (otherwise it thinks you are escaping the next character).
Also, stuff like this is wrong:
Code:
"" = "LS6021023"
should be
Code:
@="LS6021023"
If you are using Core Kitchen you can use the tool in there to dump the cab file and it will give you a nice registry entry file to use.
wow thanks alot lol, man i didnt think i could mess up that much in 1 file lol.
umm in the .rgu file you say i should use \\ instead of \ is this universal throughout the file to where i could could use the find/replace function in textpad of is it more specfic? also with the "" needing to change to @.
thanks for the quick response and all the help
o and on the initflashfile, i was actually thinking about doing what u said b4, when nottosmart mentioned the error b4 was about a duplicate file and i did some searching and came to a post in the core kitchen thread(yes im using the core kitchen) about how to make OEM packages that said something in relation to what you said..but i didnt no at the time thats what i should do.
o and i use the cab analyzer(im not sure if its the same as the cab dumper u mentioned) in the core kitchen, thats how i came up with the reg entries in my .rgu file. all i did was opened the cab in the program and then clicked xml, regestry entries, and copied what was there.
thanks again
jug6ernaut said:
wow thanks alot lol, man i didnt think i could mess up that much in 1 file lol.
umm in the .rgu file you say i should use \\ instead of \ is this universal throughout the file to where i could could use the find/replace function in textpad of is it more specfic? also with the "" needing to change to @.
thanks for the quick response and all the help
Click to expand...
Click to collapse
I think in your file the \\ for \ is universal (but not positive, I didn't read every line just scanned for things I know to look for). And yea, I think everywere you have "" = you could change that to @=
Also I noticed you had a hex: entry line. Not sure that one is correct format or not.
One thing that helped me a lot was to take a cab and install it. Then go into the registry with PHM Regedit or the Regedit in TaskManager and use the Export to dump out registry entries I knew were created by that install. This will give you the proper formatting.
ok i got the regedit tool and ill work on getting the reg entries that way....
but i tried what u said with initflashfile and i got the same error as b4 about how its a directory not a file....idk what to do...
what you need is an application called Cab Manager. It will give you the reg keys. and if you buy it you will be able to do an export on the reg keys which will work perfectly on in your package
hello, i was just wondering if you guys got the OEM package working yet. i have been using the palm threader for a few days and i love it. it has been a while since the last post here and i just wanna see if its working or not. thanks in advanced and if it is working, please let me know where to get it.

Rom Cooking? (Help from the Pros!)

I have been messing around with cooking roms for a few weeks now. I have cooked up a rom (New Att Rom) that has these numbers.
Total Storage: 166.16mb (Free 164.27mb)
Total Program: 101.38mb (Free 75.28mb)
I am trying to make this Att rom as clean as possible. I have removed abosultly everything that I can. I have a few questions though as Im being kind of a perfectionist. When I load up my rom and go into the registry I can find traces of old programs that were removed from the rom (for example transcriber or sim manager registry keys) I have edited the proxml files and they are not the curlprit. I have checked the .RGU files and there is only two in the whole rom (one is boot.rgu and the other one has only one entry in it) I have also checked the initflashfiles.dat file and edited it but it doesnt have the registry keys I am looking for either. Where is the main part of the registry in these roms?
Another question I have is why the dsm files (when opened in a text editor) show other programs or files in them. I would like to delete the microphone, clear storage and key lock app or the TTY icon in the settings screen. I have found these files in the DSM files but they cant be deleted. Is there a way to edit the dsm files or are they updated when other changes are made?
Lets say I load the stock att rom on my phone and make changes to the registry (add or remove registry settings). Then if I dump the rom, will the registry changes be saved when I use the dumped rom in cooking a new rom?
Has anyone figured out a way to get the memory back when a memory card is placed into the phone? I would be around 79mb free program memory (before speed tweaks) if someone figures this out!
I will have a few more questions probably but I cant remember them right now. The rom I have made is working very well and is stable. I just want to make sure all of the trace files in the registry and other places are gone. Thanks for the help
All of the pros must be working on their own roms, look at how many have been updated! Someone must know the answer to a few of these questions. I dont mind doing the work I just need a few hints!
hollywood said:
When I load up my rom and go into the registry I can find traces of old programs that were removed from the rom
Click to expand...
Click to collapse
Default.hv and User.hv are the default and user registries where you will find the entries.
hollywood said:
Is there a way to edit the dsm files or are they updated when other changes are made?
Click to expand...
Click to collapse
There's a app that does it in the general section under hacking IIRC search for build dsm that should bring it up.
hollywood said:
Lets say I load the stock att rom on my phone and make changes to the registry (add or remove registry settings). Then if I dump the rom, will the registry changes be saved when I use the dumped rom in cooking a new rom?
Click to expand...
Click to collapse
Yes.
hollywood said:
Lets say I load the stock att rom on my phone and make changes to the registry (add or remove registry settings). Then if I dump the rom, will the registry changes be saved when I use the dumped rom in cooking a new rom?
Click to expand...
Click to collapse
I beleave the answer to this is no... the dump you get is the unmodiffied ROM you have after flash it... all changes after this are not dumped.
Cheers.
Great info thanks guys
What program do you use to edit the default.hv and user.hv? Thanks again
hollywood said:
What program do you use to edit the default.hv and user.hv? Thanks again
Click to expand...
Click to collapse
You can not edit directly, you must convert from .HV format to REG (text) format using RGUCOMP.EXE (included in KaiserKitchen) to edit, and once edited, convert back to .HV with the same tool.
Code:
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
Cheers.
Great info. I have cooked up a rom and I am having a hard time figuring out what is causing the screen delay in my registry settings. Does anyone know what setting is causing like the three second delay in the screen going from landscape to portrait? Thanks
SO if I understand you correctly.
I can open the files, edit in all of my reg edits (particularry the ones I can not export) and recompress it with RGUCOMP.EXE and cook my edits into my rom ?
Ok I tried this and finally figuted I have to do it from a command line.
WHen I do
1. SET _FLATRELEASEDIR=.
2. RGUCOMP -o default.hv -nologo > default.txt
I get fronm the txt file:
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
obviously I am doing something wrong, but I have no idea what.

PROVXML question in OEM Folder Cooking!!!

Ok, I am going absolutely crazy here...I am no noob to cooking but I am having a horrible time for some reason. First let me set up the ROM for you...
I am running CE OS 707 WWE ported with Build 19965 (Raphael) and it is working fine. I have always made a provxml file to make my necessary registry changes instead of going through all the rgu's.
I have named this provxml file mxipupdate_oemoperators_108.provxml which I have attached for reference... This file is placed into the OperatorPKG folder and should, I say should run along with the other mxiupdate files...
Please look at this file and please explain why it is not happening. THe only thing I am thinking is that the ported SYS folder is causing some errors???
THanks in advance.
The file was made using rgutoXML in Unicode with wordwrap turned off
I have also tried running the file, converted to a xml file in my user customizations when it starts but still a no go...
Check youre sys if you got coldinit.lnk/coldinit.exe present.
My config_operator.txt
Code:
LOCK:Enabled
XML: \WINDOWS\mxipupdate_dialer_runback.provxml
TSK: \WINDOWS\IBI.tsk
XML: \WINDOWS\Menu_Operation.xml
CAB: \WINDOWS\PP_AKv33-DefaultPage_WWE-0409.CAB
XML: \WINDOWS\xml_reg.provxml
CAB: \WINDOWS\Raiisak`s IBI visual.cab
CFG: \Windows\config_PT.txt
config_operator.txt & xml.reg.provxml in C:\kaiserkitchen\OEM\OperatorPKG
xml.reg.provxml is where I have some of my reg stuff.
Yeah both those files are present in the SYS\Shell folder...
See whats confusing me about the whole thing is that the other ProvXML files in the OperatorPKG are working???? So I am assuming it might be something to do with the file.???
ryncppr said:
Yeah both those files are present in the SYS\Shell folder...
See whats confusing me about the whole thing is that the other ProvXML files in the OperatorPKG are working???? So I am assuming it might be something to do with the file.???
Click to expand...
Click to collapse
Wel, I poped it open to see if you had "Registry" present twice wich would make a error but it seemed good to me so its something that makes it not run. Try to set it up like I did above and give it a spin. Letme know if it worked.
Well that was a NO go so I am going to see if it has too do with the SYS files.... possible causing the error , I am not too sure...Very dumbfounded right now
Just for additional info.
To make *.provxml to be loaded on cold-boot, the said file must exist is any *.dsm.
Hope this help
And please check ur file, there were some errors in it & will be bypassed during cold-boot
Here some hints:
-check ur header
-remove semicolon or use html code
-check ur HKLM & "HKEY_LOCAL_MACHINE"
hang.tuah said:
And please check ur file, there was some error in it
Click to expand...
Click to collapse
Ah, yes. Didnt think of that.... Yet look for it ..
Ok I'm dying over here...what is the error please???? And by placing the *.provxml file into the OperatorPKG file isn't a DSM file attached to it???
I made sure any settings were not duplicated on a newer version...and by the way I tried to change the Coldinit files back to the original but no go either...I am trying a different SYS now
i think u missed my previous edited post
What do you mean by "Check my header"....
It says version="1.0" encoding="utf-8" I know.... do you mean I have to change the source file (text file) to unicode to get rid of this???
Basically if I open the file, click on View Source it opens in a notepad format...Should I save the file as *.provxml in Unicode??? because when I look at all the files that ATT puts out, once I change these files it makes them have the same header....
I also looked at raiisak xml.reg.provxml file and it too has the same header???
Ok I have attached my newest version of the Provxml...the header is gone as I changed the file type to Unicode and saved....
Also I have removed all the different HKLM files to the same and got rid of the ";" but it appears it is still not working???
I have the file named mxipupdate_oemoperators_108.provxml and it is set to run in the OperatorPKG file which has all the files the same up to 107....
ryncppr said:
I also looked at raiisak xml.reg.provxml file and it too has the same header???
Click to expand...
Click to collapse
For one time I prolly didnt use XML Notepad And I saw in EditPad
_ . _
so can someone please help me here....I am just asking what I am doing wrong...I have search the file, looked a hundreds of provxml files and still can not understand why this is not working???
ryn, for me, the header is not mandatory, it is ok, but will give error if u use some xml compiler.
here my attached edited file & u can compare with yours.
Hope this helps
hang.tuah said:
Here some hints:
-check ur header
-remove semicolon or use html code
-check ur HKLM & "HKEY_LOCAL_MACHINE"
Click to expand...
Click to collapse
Code:
translation="filesystem">
Code:
<characteristic type="HKLM\Software\OEM\RIL ; HSDPA indicator">
Code:
<characteristic type="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts">
This is what hang tried to explain.
I already changed the HKLM and the ";" problems...the translation=filesystem I did not change.....what would it be changed too???
have u compared ur with mine mate
and please test it can work or not | sorry i cant test it
I have compared yours with mine...
I am seeing you took out the translation section which I had done before...I am going to try and load yours in a rom...just trying to find a program that I can use instead of burning the rom completely over..
i dont think having translation section is problem. i'm also using a provxml that i created for myself, it has the provxml section in it and it does work properly. what i suspect is integer" value="0.0 sec". if it is integer, shouldn't it be integer" value="0" ?

rgu help

i'm having trouble with one or two rgu files that have come from my cab's using PackageCreater.
some have:
"reg path\item" = ""path_to_app" "%1""
when buildos builds the rom, this always corses an error, if i edit it to:
"reg path\item" = path_to_app %1
no errors, but when running the app in win mobile, cant get to the file,
if i then load regedit, edit so registery has "path_to_app" "%",
all works,
so question is how can i get the rgu to have the double quote with out stopping buildos... are ' allowed?
Know this is old thread. However, I had this exact problem myself and knowing the answer would have helped. Try escaping the quotes.
Try like this:
"reg path\item" = "\"path_to_app\" \"%1\""

How to delete a registry value with a .reg file?

Hi XDA ppl,
How to delete a registry value with a .reg file? The standard hyphen approach doesn't seem to work. I tried it like this:
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItem"=-
This should delete the TestItem but it refuses to do so. Does anyone knows the trick?
I don't know how to do it with a reg key, but you can do it this way with a mortscript:
Code:
RegDelete("HKLM","\Software\Test","TestItem")
here you go!
cruiserrr said:
here you go!
Click to expand...
Click to collapse
Like I said in my first post: "The standard hyphen approach doesn't seem to work."
gotobigo said:
Like I said in my first post: "The standard hyphen approach doesn't seem to work."
Click to expand...
Click to collapse
Sounds odd! can you tell me the heading of your provxml file? it is xml or provxml? what tool do you use to import? can you post the actual code of the file?
Hi, usually I create a cab file from .reg files with CeRegEditor (ceregeditor.mdsoft.pl). If I create new keys/ values everything works just fine. Just deleting doesn't work.
In the end I installed the kilmist registry editor trial to double check cause it can import .reg files directly, but its the same problem: deleting doesn't work.
Here the exact code of the files I tried:
-- File 1: create a test key with 2 values... works fine ------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Test]
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItemOne"=dword:00000001
"TestItemTwo"=dword:00000001
-- File 2: try to delete 1 value... fails ---------------------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Test]
"TestItemOne"=-
-- File 3: try to delete the whole key... fails too ----------------------
REGEDIT4
[-HKEY_LOCAL_MACHINE\Software\Test]
your files seem ok.
while you find th solution I recommend to add postxml to your cab to delete the unwanted keys. nocharacteristic and nopar should allow you to delete whatever needed.
two hints: check the encoding of the files and check the order. make one cab for the additions and another for the substractions just in case the cab tries to delete the key before it is created. sorry i can not help more !! please, pm when you find what was it
Try:
Save your .reg file as Unicode not ANSI, start your .reg file with
Windows Registry Editor Version 5.00
In the first line. And leave one blank empty line at the end of the .reg file.
Did it work?
fluffiey said:
Try:
Save your .reg file as Unicode not ANSI, start your .reg file with
Windows Registry Editor Version 5.00
In the first line. And leave one blank empty line at the end of the .reg file.
Did it work?
Click to expand...
Click to collapse
Nope, doesn't work either.
I put Windows Registry Editor Version 5.00 in the first line, encoded it 8-bit unicode and made sure theres a blank line at the end (always did that). all to no avail.
Btw, I'm running WM 6.1 on a TP2. I really wonder if its working at other phones / WM versions, or this is a "universal" problem.
thx anyway, Tobias

Categories

Resources