Removing something from registry with .xml - Touch Pro, Fuze General

Hello,
I have a question.
For a answer i already looked around at the net and have read some threads at xda, modaco, and some site at msdn.
The short version: how do i remove a dir from the register with a .xml file?
The long version:
I need to remove a dir from the registry.
I opened a new text document and saved it as _setup.xml.
In this .xml file i wrote:
<characteristic type="Registry">
<nocharacteristic type="HKLM\Software\Microsoft\Shell\DeviceBeta" />
</characteristic>
</characteristic>
After that i opened Quickcab in the first field I put in by application name 1 and by owner 1.
By the second screen I add the _setup.xml file to the windows folder
At the next screen i do nothing and click on create.
I save it as _setup.cab.
After the .cab file is maked i move it to my phone and run it from my phone.
It says that evreything is installed and so on.
But when i reboot my device nothing happened and the dir. at the register is still there.
What am i doing wrong?
Do i need to put something more in the .cab file?

Moved as not ROM Development.

don't think you really understand xml
http://en.wikipedia.org/wiki/XML
xml can't do anything at all on it's own it's a model language which needs to be interpreted by another program
it's not a programming or batch language

Hi,
I believe your xml file should look somthing like this:
To delete a value:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Delete a registry value under the following key -->
<characteristic type="HKCU\Software\Second Test Key">
<noparm name="Value To Delete" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
To delete a key (or a dir as you call it):
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Delete a registry key, with all its values and subkeys -->
<nocharacteristic type="HKLM\Software\RegKey To Delete" />
</characteristic>
</wap-provisioningdoc>
Cheers,
/Cacti

Rudegar said:
don't think you really understand xml
http://en.wikipedia.org/wiki/XML
xml can't do anything at all on it's own it's a model language which needs to be interpreted by another program
it's not a programming or batch language
Click to expand...
Click to collapse
Thank you for the link Rudegar more brain food my brains are already at the point to explode.
One of the threads that i have read is http://forum.xda-developers.com/newreply.php?do=newreply&p=5908996.
Thank you for helping.
le_cactus said:
Hi,
I believe your xml file should look somthing like this:
To delete a value:
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Delete a registry value under the following key -->
<characteristic type="HKCU\Software\Second Test Key">
<noparm name="Value To Delete" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
To delete a key (or a dir as you call it):
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Delete a registry key, with all its values and subkeys -->
<nocharacteristic type="HKLM\Software\RegKey To Delete" />
</characteristic>
</wap-provisioningdoc>
Cheers,
/Cacti
Click to expand...
Click to collapse
le_cactus thank you for helping out i am trying this out tonight or tomorrow.
Can i save this in a text file and save it as .xml and then cab it?
Can some one explain how to delete a key in the registry of windows mobile 6.5 by a simple guide ?
Because I am busy making my own rom.
The problem i have is that in the right corner below i have standing I quote: Beta Expires: 05/01/2010
I know you can delete this by going in you registry to hklm/software/microsoft/shell/Devicebeta and delete this key.
But i like to delete this key automatic when i have flashed the rom and not doing it afterwards by going in to the registry.
If i have a problem i try to solving it at my own by reading threads and searching the net for answers but some times i need some help to get it right and to get me on the right track.
I appreciate the help that i get here so thank you all for helping out.

xml to reg and vice versa
First it started for me when I saw an UC capable ROM, from there I too wanted to go from reg/rgu to xml and vice versa After some researching I found several threads concerning my wishes. Within these threads you'll find your desired utilties For the overall clarity I'll start with the beginning;
[App] ROM Flashing Junkies: User Customization is here!
http://forum.xda-developers.com/showthread.php?t=366337
see the UC related software tools
Within this thread there is an application called SDConfig creator which was created by DoeDoe's. Currently it is replaced by;
[Release] UC ROM SDConfig.txt Builder (reborn) [Prikolchik Ed.]
http://forum.xda-developers.com/showthread.php?t=390846
I'm using PHM Registry Editor it allows me to do the following tasks:
Explore the registry to find the operating system and applications configuration,
modify system and applications tweeks not available from the standard options screens,
export all or parts of the registry to .reg files,
backup and restore the complete registry and
perform search on the registry data
Have fun everyone with editing/creating/modifying/wrecking,
Senax

Related

menu_operation.xml

Hi,
I have installed on my Kaiser the following ROM RUU_Kaiser_HTC_WWE_3.28.405.0_radio_sign_25.83.40. 02_1.65.16.25_Ship.exe.rar.
So far so good - it works.
I have created a new ROM (based on this ROM) with some more application - so far so good.
Nevertheless, I have tried to move some *.lnk (\windows\start menu\programs) to some new folder (\windows\start menu\tools, ....) with editiong the Menu_Operation.xml file in xkaiserkitchen_01-20-08\OEM\OperatorPKG.
Unfortunaltey none of the *.lnk are moved.
Menu_Operations is started once after a hardreset or after flashing the new ROM - started from config_operator.txt.
The creation of new directory works.
Example:
<characteristic type="%CE4%\Programs\Tools\Search.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE4%\Programs\Search.lnk" translation="install"/>
</characteristic>
</characteristic>
Should means: move search.lnk from directory \windows\start menu\programs to \windows\srat menu\programs\tools
But nothing happens.
Any ideas ?
_________
In my cooked ROMS, I edit initflash.dat directly.
NOTE: initflashfiles.dat has an interesting issue where if you use notepad to edit the contents and save it, notepad will add extra characters that prevent the device from booting properly after flash. I personally use WinHex (any Hex editor will work) to remove the extra bits it adds at the beginning of the file after making changes.
Click to expand...
Click to collapse
Taken from http://wiki.xda-developers.com/index.php?pagename=Cooked_ROM_Q-Mobile#Cooking
Me too. More direct and do not need to struggle w/ xml
EDIT: Please ignore this mail.
hm, now I am confused.
As far as I know, all OEM apps are stored under \xkaiserkitchen_01-20-08\OEM\OEMAPPS - but there is no *.dat file, only a *.dsm is available.
There is either no initflashfiles.dat under \\xkaiserkitchen_01-20-08\*.
Which file has the information which *.lnk is stored in which directory ?
For my own apps (saved under \xkaiserkitchen_01-20-08\Packages ) this information is initflashfiles.txt (created with packages generator by ervius)
Thanks
kuzco
Cannot move links from os.
Need to use the copy function instead.

Changing OEM *.lnk (shortcuts) paths before cooking ?

hum... i have here a noob question about basic cooking ...
because the lack of roms in my native language... i started to **** my own ...
i have one simple question ...
i now have folders with icons in /programs
and i have a problem,.. how can i arrange the shortcuts in the folders ?
for example.. in packages i edit the "initflashes" and i can change the path of the shortcut to wherever i want...
but how i can change in OEM stuff ? like ACTIVESYNC ? ... i can see the application.exe and the link.lnk em OEM folder... but how can i set the path to the link ?
sry my english ... i dont know if i explained well what i want :\
thanks
Use OEMizer, it's very helpful to create shortcuts.
The simplest way is to modify customization script in OperatorPKG (OEM folder) i think.
I do it this way.
Add to config_operator.txt this line:
XML: \WINDOWS\your_xml.xml
And now create your own XML with description of operations you would like to do.
Examples
Move shortcut:
Code:
<characteristic type="FileOperation">
<characteristic type="\Windows\Nabídka Start\Programy\Nástroje" translation="install">
<characteristic type="MakeDir"/>
</characteristic>
<characteristic type="\Windows\Nabídka Start\Programy\Nástroje\Správce SIM.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\Nabídka Start\Programy\Správce SIM.lnk" translation="install"/>
</characteristic>
</characteristic>
<characteristic type="\Windows\Nabídka Start\Programy\Správce SIM.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
Change registry values:
Code:
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Today" translation="filesystem" >
<parm name="Date" datatype="integer" value="1" />
<parm name="Enabled" datatype="integer" value="1" />
</characteristic>
</characteristic>
thanks for the quick reply!!! ill try
ruizit0 said:
thanks for the quick reply!!! ill try
Click to expand...
Click to collapse
i think have better solution.. go to the oem after to oem lang 409
and open with notepad the initflashfiles.dat
and change or see how make shortcuts..
Yes... But it's possible only in english ROMs.
For example in my Czech rom initflashfiles.dat looks strange...
b16b said:
i think have better solution.. go to the oem after to oem lang 409
and open with notepad the initflashfiles.dat
and change or see how make shortcuts..
Click to expand...
Click to collapse
If you do this, remember to hex edit the file to delete the first two keys on the top left.
b16b said:
i think have better solution.. go to the oem after to oem lang 409
and open with notepad the initflashfiles.dat
and change or see how make shortcuts..
Click to expand...
Click to collapse
dont know why but... i dont have that file lol
im working on this rom
RUU_Kaiser_HTC_PTG_3.28.410.0_radio_sign_25.83.40.02_1.65.17.56_Ship
maybe because its an old release ... (but its the only release in my native language )
ill try the custom .XML trick
the OEMizer is a nice tool ... but i think its only to create new shortcuts right ?
what i want to do is to move the existent shortcuts in OEM to inside my folders...
its possible that OEMizer make that to... but for now ill try the custom solution...
thanks all
used OEMizer... i figured out how it works ... i just get duplicated shortcuts... but its easy to fix... just have to remove the shortcuts in oemapps ...
but i saw now that i have another problem in this field..
because my native language (portuguese) have special charecters like: ã , ç , á .. etc...
when i created the folders..
Directory("\Windows\Menu Iniciar\Programas\Aplicações"):-File("icon.lnk","\Windows\icon.lnk")
Click to expand...
Click to collapse
the special characters doesnt appear :\ ...
Aplicações -> Aplicaes
errr ... isnt possible to make special charecters in initflashes to create the folders ?
thanks
You must have initflashfiles.dat in your kitchen. But it's hidden. You must set up the file manager to "show hidden and system files".
About special characters... You must save result in UTF-16 LE encoding.
N3o21 said:
You must have initflashfiles.dat in your kitchen. But it's hidden. You must set up the file manager to "show hidden and system files".
About special characters... You must save result in UTF-16 LE encoding.
Click to expand...
Click to collapse
hum... i have allways "show hidden and system files" in explorer
but when i get home ill do an dos attrib to double check ...
in the bed .. i remembered that enconding option.. (here is UTF-8) .. ill try later .. hope that isnt a initflashes limitation in special characters
one more question ... i used OEMizer to make some shortcuts for OEM stuff like ActiveSync and others... but the icons dont show up ... hum.. i read something before about that problem but i cant find it :\
(i was thinking that would be great if someone can make an "noob" FAQ for cooking with this little questions to help the people that is starting in the cooking buisness)
Faria once created a nice tutorial on how to cook those things. I think I have the link in the Hermes Kitchen link down in my sign. Check that out!
cant find :\
http://forum.xda-developers.com/showpost.php?p=2357462&postcount=4
there is kaiser ptg rom - dump it and u will get all ptg oem
kareem9nba said:
If you do this, remember to hex edit the file to delete the first two keys on the top left.
Click to expand...
Click to collapse
i never do this and i don't have problem

[Question] Default items on start menu

its there a way to use the reg to set default programans on startmenu?
Example:
File Explorer
Internet Exporer
Comm Manager
Phone
Messenger
NO HELP
at frist boot after hard reset...
THX
wolframio74 said:
its there a way to use the reg to set default programans on startmenu?
Example:
File Explorer
Internet Exporer
Comm Manager
Phone
Messenger
NO HELP
at frist boot after hard reset...
THX
Click to expand...
Click to collapse
in \settings\menu ...
thx but how i export these setting to make it default on rom?
wolframio74 said:
thx but how i export these setting to make it default on rom?
Click to expand...
Click to collapse
it's reg key i don't remember witch one...
wolframio74 said:
thx but how i export these setting to make it default on rom?
Click to expand...
Click to collapse
Never trying this but you can start to export values from HKLM\Software\Microsoft\Today\Items. You can import later to include any shortcut you want to be listed
wolframio74 said:
its there a way to use the reg to set default programans on startmenu?
Example:
File Explorer
Internet Exporer
Comm Manager
Phone
Messenger
NO HELP
at frist boot after hard reset...
THX
Click to expand...
Click to collapse
Try settingssavior, i think it has a provision for it. But I am not sure if works or not!
I have done this before, and unfortunately, a simple registry tweak doesn't do the trick. You will need to write (or edit) an *.provxml in your kitchen specifying the *.lnks to move to the "\Windows\Start Menu" directory.
Don't think this can be done by Reg, the default items are Stored als .lnk under "\windows\Startmenu\" controled by Initfiles.dat or Proxml files!
Maybe you can try Proxml syntax with UC
like this
Code:
<characteristic type="\Windows\Start Menu\" translation="install">
<characteristic type="Internet Explorer.lnk " translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\pie.lnk" translation="install"/>
</characteristic>
</characteristic>
and delete Help :
Code:
<characteristic type="\Windows\Start Menu\Help.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
s4dd1 said:
Don't think this can be done by Reg, the default items are Stored als .lnk under "\windows\Startmenu\" controled by Initfiles.dat or Proxml files!
Maybe you can try Proxml syntax with UC
like this
Click to expand...
Click to collapse
You are right ...sorry for misguiding, by mistake I thought it is a today item plugin which is enabling/disabling is controlled by registry values.
edited the title to maybe get some more eyeballs on this.
just move around the link files
i think u are asking if u can customize the start menu...
use total commander and go to your main memory. then click on windows folder. then click on start menu folder. here you'll see link files for all your programs. with your stylus, click and hold...Copy/Move. then click on Tree...find the directory you want to move it to or just plain delete the link file off that folder and keep just the ones you want.
hope it helps.
If the Rom is UC compatible,than this is most safe way to put these setting right after each hard reset.
KMFM$ said:
I have done this before, and unfortunately, a simple registry tweak doesn't do the trick. You will need to write (or edit) an *.provxml in your kitchen specifying the *.lnks to move to the "\Windows\Start Menu" directory.
Click to expand...
Click to collapse
That sound very nice, where i find that provxml to edit it? or i may create it? (how) thx
BTW: thx to all for the replies
I would just add it to the end of an existing .provxml file. In your kitchen, go to OEM and search for mxip_oemupdate_*.provxml (something like that). Just open it up and add the entries before the </wap-provisional> tag at the end. A tip on editing, search the boards for Sleuth's User Customization thread. It gives tons of examples and links for editing .provxml files. When I get a chance, I'll post a copy of what I use to help you out.

Timezone New Rom Set

I am cooking a new rom and i have some problem setting up the time zone
i try set the time zone in the file \OEM\OperatorPkg\mxipupdate_oemoperators_105.provxml
with this code for GMT
"
<characteristic type="HKLM\Time">
<parm name="TimeZoneInformation" datatype="binary" value="AAAAAEcATQBUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAFAAIAAAAAAAAAAAAAAEIAcgBpAHQAaQBzAGgAIABTAHUAbQBtAGUAcgAgAFQAaQBtAGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAEAAAAAAAAAxP///w=="/>
</characteristic>
<characteristic type="HKLM\SOFTWARE\Microsoft\Clock">
<parm name="GMT_OFFSET" datatype="integer" value="0"/>
<parm name="Home" datatype="integer" value="232"/>
<parm name="AppInfo" datatype="binary" value="AQAAAIABAABVAAAAAAAAAAEAAAA6AQAAaQAAAAAAAAABAAAA"/>
</characteristic>
"
but after i flash the rom it show Gmt +5 Timezone in the wizard there is any other way to change this?????
"
no one as as clue???
I use the following to set London GMT as Default
[HKEY_LOCAL_MACHINE\Software\Microsoft\Today]
"AutoSingleLineDatePlugin"=dword:1
; Set default TimeZone is GMT London,Dublin ==============
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:\
00,00,00,00,47,00,4D,00,54,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0A,00,00,00,05,\
00,02,00,00,00,00,00,00,00,00,00,00,00,42,00,72,00,69,00,74,00,69,00,73,00,\
68,00,20,00,53,00,75,00,6D,00,6D,00,65,00,72,00,20,00,54,00,69,00,6D,00,65,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,03,00,00,00,05,00,01,00,00,00,00,00,00,00,C4,FF,FF,FF
Click to expand...
Click to collapse
I use CeRegEditor (freeware) to capture my reg settings as this program conects through active sync so you can make and save changes on your PC so much easer ,then transfer them to my ROM job done
Download here:
http://ceregeditor.mdsoft.pl/
wapvirus said:
I use the following to set London GMT as Default
I use CeRegEditor (freeware) to capture my reg settings as this program conects through active sync so you can make and save changes on your PC so much easer ,then transfer them to my ROM job done
Download here:
http://ceregeditor.mdsoft.pl/
Click to expand...
Click to collapse
but that way when you flash your rom in wizrad still gmt +5
rukako said:
but that way when you flash your rom in wizrad still gmt +5
Click to expand...
Click to collapse
well my way works for me all i can say is give it a try as for yours not working have you checked those reg entries
wapvirus said:
well my way works for me all i can say is give it a try as for yours not working have you checked those reg entries
Click to expand...
Click to collapse
so where do you put that in rom? in File?? or you just run the reg???
you need to make it as an OEM, your OEM folder should contain an RGU, a DSM and an option.xml
Post Moved to Q&A Forum
i try set the time zone in the file \OEM\OperatorPkg\mxipupdate_oemoperators_105.provxml
and didn't work
Check if there isn't another provxml with the same information and also try to edit your default.hv and user.hv
tonio94 said:
Check if there isn't another provxml with the same information and also try to edit your default.hv and user.hv
Click to expand...
Click to collapse
how do edit default.hv and user.hv hex tool?
use rgucomp.
go back to cooking school !!!

Modyfying StartMenu directory structure with a CAB file

Hello
I bumped into problems when I tried to make a provxml file which would modify the directory structure and/or change the link names inside StartMenu\Programs folder.
I wrote whole long provxml script using some found tutorials, then I put the provxml as _setup.xml inside a CAB file (with a Windows XP makecab.exe). But every time I try to run the CAB on the device I have the error that Installation unsuccessful because of too small rights to install.
I also try to run the provxml directly via CeRegEditor, but it gives me the "Access Denied" communicate.
Then I tried to shorten the provxml because I thought I made some mistake in the script itself, but even when I try to the following very simple script to create one single folder and copy a link to this folder without even changing it's name, it still gives me the same rights error:
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows\Start Menu\Programs\Narzędzia" translation="install">
<characteristic type="MakeDir" />
<characteristic type="PIM Backup.lnk">
<characteristic type="Copy">
<parm name="Source" value="%CE11%\Tools\PIM Backup.lnk" translation="install"/>
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Do I need any special certificate to be able to modify the folders/files in StartMenu? I can do it without problems using Total Commander, but I want to make it more "automatic" after flash or HR.
I tried to use MortScript, and it worked fine, but in order to run the script I have to install MortScript application first. And I want to avoid installing any unnecessary software as Jackos ROMs are clean as a teardrop...
Thanks in advance for any help

Categories

Resources