PDA

View Full Version : Could someone please review my .XML code? (new to provisioning)


hier0glyphics
24th July 2008, 01:14 AM
As mentioned in the title, I am trying to get my feet wet with .xml provisioning. (Specifically with .XML provisioned registry settings.) After researching, I understand that registry settings and XML provisioning can get pretty tricky and as well as quite complex. So I decided to start small with keyboard layout, customizing SK2 on the today screen and changing my S2U2 background.

I am having problems getting my .XML files to work and can't tell if its my .xml documents or if its my method of loading the files. Because of this, I was hoping someone could take a look at my code and let me know where my mistakes lay.

Keyboard Layout:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\OEM\Qwerty\">
<parm name="Layout" datatype="DWORD" value="132100" />
</characteristic>
</characteristic>
</wap-provisioningdoc>


SK2 on the todayscreen:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112">
<parm name="Default" datatype="String" value="Google Maps" />
<parm name="Open" datatype="String" value="\Program Files\GoogleMaps\GoogleMaps.exe" />
</characteristic>
</characteristic>
</wap-provisioningdoc>


S2U2 Wallpaper:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\A_C\S2U2\">
<parm name="Wallpaper" datatype="String" value="\My Documents\My Pictures\Album Sample_07.jpg" />
</characteristic>
</characteristic>
</wap-provisioningdoc>


Thanks!
-hier0

joemanb
24th July 2008, 06:54 PM
try adding (translation="filesystem") to any line that has a backslash or is a system path like so:

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="Default" datatype="String" value="Google Maps"/>
<parm name="Open" datatype="String" value="\Program Files\GoogleMaps\GoogleMaps.exe" translation="filesystem"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

please let us know if this solves your problem...

hier0glyphics
24th July 2008, 11:50 PM
That didn't work either =\

Maybe, I am incorrectly creating the .xml file itself. I have tried two method of doing so: Notepad and Dreamweaver.

Are these the correct steps for creating an xml document in notepad?

1. Open Note Pad
2. Paste my xml code:

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="Default" datatype="String" value="Google Maps"/>
<parm name="Open" datatype="String" value="\Program Files\GoogleMaps\GoogleMaps.exe" translation="filesystem"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

3. Save the document as "filename.xml"


are there any other tags that i need to include either before or in between the <wap-provisioningdoc> tag?

[EDIT] I am not sure if it helps or not but the error i am getting when installing/loading the file is : "unknown error occured: 0x80004005"

Radimus
25th July 2008, 01:23 AM
save it to your desktop and open it in IE

If the format is correct, you can open and expand/collapse the keys

joemanb
25th July 2008, 06:23 PM
how are you trying to install it?
As far as I know, you have to create a cab file to install it...
rename to "_setup.xml" and use "makecab.exe" like this at the command line:

makecab _setup.xml cabname.cab

cruiserrr
19th June 2009, 05:59 PM
Hi, For registry xml provisioning, if you have sktools 4.7, you can export the keys from registry and use the functionality build cab from reg. Then you open the cab with winzip, view the _setup xml file and copy to your xml file as a scheleton. Remove the first characteristics (they rule the cab itself) and copy when it says caracteristic registry.

There are also tools like reg to xml but they require cf 2.0 in the pc.

for email and wifi the easiest way is to do it with sashimi-makisu.

the only thing I saw compared with my files is that datatype is always at the end in my files, after the value. I have never use the one "DWORD": only string, integer, binary.

I usually import with sdcsoft task manager, the message you get, in my experience means it is well formed (try opening with ie as commented in previous tag), but the commands can not be executed.

B4PJS
19th June 2009, 06:03 PM
AFAIK you have to have a blank line at the end of the xml/provxml file. This is the code for me to set up my data connection
<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
<characteristic type="T-Mobile Internet">
<parm name="DestId" value="{F750E26F-81D9-4379-8567-318C129CA736}" />
<parm name="UserName" value="faster" />
<parm name="Password" value="web" />
<parm name="Enabled" value="1" />
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoAccessPointName" value="general.t-mobile.uk" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>