Registry key in .cpr file - General Questions and Answers

Does anyone know how to refere to a registry in a .cpr file.
For example, if I want to add a text on my titanium plugin, and in my registry it's in located in HKLM\Software\whatever\text1, how can I get the .cpr to read the value inside that string?
For some reason wm6.5 knows that it can get values from the HKLM\Software\Microsoft\CHome key, but how can I get it from another key?
Would be realy awesome if someone could help, that way there would be quite a bit more to edit in wm6.5...

Does nobody have any idea?
I read that it is the same language as in .xml files, so how do I add a registry value to a text line?

don't know the format or the program which use cpr files
but if the cpr file include the "HKLM\Software\Microsoft\CHome"
then I would change it
if not then the program which interp the cpr files prob have
the parth hard-coded in it's binary code

Rudegar said:
don't know the format or the program which use cpr files
but if the cpr file include the "HKLM\Software\Microsoft\CHome"
then I would change it
if not then the program which interp the cpr files prob have
the parth hard-coded in it's binary code
Click to expand...
Click to collapse
I know the reg. path is in the binary code of a program,
but can't read or edit that.
But, my question is if someone knows the .xml code to read from a registery value.
fe: the code for a picture is [ source="\Windows\photo1.png" ]
to read something from a .dll file is [ InnerTextType="Resource" Text="shellresapps.dll,18149" ]

Related

function in config.txt

Hi Folks,
testing with my config.txt on my XDAIII i found some settings i dont understand!
1.) SHOW:\Extended_ROM\TMO_WallPaper.bmp
i think it should show the bitmap during config.txt is running
tried to use some background pictures (320 x 240) but get an error message at Hardreset that the bmp file is not a valit install file for device.
i dont have the original .BMP file so i cant see what format it has to have!
can anybody tell me the format the picture must have and how to run this feature??
2.) CFG: \Storage\config.txt
watfor is this setting?
this entry is found normally at last line of config.txt.
But i find it useless because the path to config has to be set BEVORE run the hardreset.
Does anybody know more about this setting?
maybe there is a list and description of all functions config.txt has ??
Pauli,
I think you're on the right track with config.txt. But how did you manage to change the ext-rom content? I guess that's what everyone over here likes to know.
M
I have changed to a bigstore Rom and let automatic install all software from the "storage"!
Autorun is able to do this when you change some things!
Any further details about my question ?

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" ?

Whats wrong with this rgu file?

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!

Use a reg File to change Manila Language

if someone could help me...
I want to use a reg file to change the following registry value:
[HKEY_CURRENT_USER\MUI]
"CurLang"=dword:409
Want to change to 816
I know that I can manually change this value using a Registry editor like Total Commander, but what I want to do is, with single click in the reg file in attach located somewhere im my device change this value.
I am trying to this with no luck, the device ask me if I want to import, I say yes but nothing happens and the value is the same as it was (409).
I am doing something wrong?
dotcompt said:
if someone could help me...
I want to use a reg file to change the following registry value:
[HKEY_CURRENT_USER\MUI]
"CurLang"=dword:409
Want to change to 816
I know that I can manually change this value using a Registry editor like Total Commander, but what I want to do is, with single click in the reg file in attach located somewhere im my device change this value.
I am trying to this with no luck, the device ask me if I want to import, I say yes but nothing happens and the value is the same as it was (409).
I am doing something wrong?
Click to expand...
Click to collapse
Hi I'm not 100% sure but your reg-file says:
Code:
REGEDIT4
[HKEY_CURRENT_USER\MUI]
"CurLang"=dword:816
I do it with an regfile to (fully automated with sashimi) and works so fine
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\MUI]
"CurLang"=dword:00000407
Hope this helps!

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