Hi all,
I was trying to create a provxml file to automatically create a shortcut in
the "Start Menu" folder.
this is the sintax I was using:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE17%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Reset.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\location\my_file.exe /parameter" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
but always the .lnk file receives this value :
(quotes are included in value and slash is converted in backslash)
"\location\my_file.exe \parameter"
can someone help me to obtain : \location\my_file.exe /parameter?
thanks for reading J.
might as well create the link in correct form and use provxml to copy the link to the location you want. much simpler.
try removing 'translation="install" ' from the line with the parameter.
jiggs said:
might as well create the link in correct form and use provxml to copy the link to the location you want. much simpler.
Click to expand...
Click to collapse
tried too... maybe my example files have some syntax errors inside
I always get failure to execute the provxml.
@ joemanb : I'll try
Thank you all
What about this?
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE17%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Reset.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source"
value="\location\my_file.exe /parameter"/>
</characteristic>
</characteristic>
</characteristic>
<wap-provisioningdoc>
Maybe the problem is caused by security?
http://msdn2.microsoft.com/en-us/library/aa455927.aspx
RStein said:
What about this?
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE17%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Reset.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source"
value="\location\my_file.exe /parameter"/>
</characteristic>
</characteristic>
</characteristic>
<wap-provisioningdoc>
Maybe the problem is caused by security?
http://msdn2.microsoft.com/en-us/library/aa455927.aspx
Click to expand...
Click to collapse
Must be security, I've tried to copy to "\" and to "\windows" and worked like
a charm. Not in "%CE17%".
Thank J.
Edit: Phone user shoud be an authenticated user..?!?
Edit 2: Ok DONE! Thank you all guys, I love this forum.
jiggs said:
might as well create the link in correct form and use provxml to copy the link to the location you want. much simpler.
Click to expand...
Click to collapse
Code:
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type="HKLM\System\GWE\MAGNIFIER" translation="filesystem">
<parm name="Enable" datatype="integer" value="0"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Solitaire" translation="filesystem">
<parm name="Prefs" datatype="string" value="310011"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Related
for more info, see here: http://forum.xda-developers.com/viewtopic.php?t=52221
Jimm98y said:
for more info, see here: http://forum.xda-developers.com/viewtopic.php?t=52221
Click to expand...
Click to collapse
Nicely done Jimm98y, i dont have a green icon but it worked on my device. My only tip would be on the greenbatteryfix.cab installer to give no option to install on device or storage card - just install straight to windows with no dialog. Cheers
yes, I know what you mean but I don't know how to make it. But if you choose storage or storage card, the fix is always installed in windows folder...
Jimm98y said:
yes, I know what you mean but I don't know how to make it. But if you choose storage or storage card, the fix is always installed in windows folder...
Click to expand...
Click to collapse
I just put together this xml for a cab for a gx.dll fix. It gives no prompt destination dialog if that helps to modify yours.
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="AppName" value="gx dll fix" />
<parm name="NumDirs" value="1" />
<parm name="NumFiles" value="1" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="0" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="gx.dll" translation="install">
<characteristic type="Extract">
<parm name="Source" value="gx.dll" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
</characteristic>
</wap-provisioningdoc>
yes, it works, thanks very much, I use it in new version of this fix. And does anybody know how to import the cab with certificate into the cab with fix?
Jimm98y said:
yes, it works, thanks very much, I use it in new version of this fix. And does anybody know how to import the cab with certificate into the cab with fix?
Click to expand...
Click to collapse
I would at first try it like this
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="AppName" value="gx dll fix" />
<parm name="NumDirs" value="1" />
<parm name="NumFiles" value="2" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="0" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="gx.dll" translation="install">
<characteristic type="Extract">
<parm name="Source" value="gx.dll" />
</characteristic>
</characteristic>
<characteristic type="sdkcerts.cab" translation="install">
<characteristic type="Extract">
<parm name="Source" value="sdkcerts.cab" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
</characteristic>
</wap-provisioningdoc>
obviously ignore gx.dll bit, just add sdkcerts.cab section and change value of numfiles at top to '2'
Actually that may not work, but his may - diff order.
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
<characteristic type="sdkcerts.cab" translation="install">
<characteristic type="Extract">
<parm name="Source" value="sdkcerts.cab" />
</characteristic>
</characteristic>
<characteristic type="gx.dll" translation="install">
<characteristic type="Extract">
<parm name="Source" value="gx.dll" />
sdkcerts.cab should be first to install! lol
yes, it could work, but I use cabwiz.exe to make a cab, how it looks in *.inf file? Or If I use the xml file, how can I compile it into the cab?
Jimm98y said:
yes, it could work, but I use cabwiz.exe to make a cab, how it looks in *.inf file? Or If I use the xml file, how can I compile it into the cab?
Click to expand...
Click to collapse
I'll pm you
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
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...
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"
save it to your desktop and open it in IE
If the format is correct, you can open and expand/collapse the keys
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
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.
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
Code:
<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>
More importantly, I want to create a shortcut WITH PARAMETERS.
I need the full list of shortcut properties to be at my disposal, including optional parameters as well as icon selection. The end result needs to be a LNK file with that shortcut in it.
Does anyone know? I'm having a really difficult time finding a one-stop location for a comprehensive list of provisional XML installation commands.
edit-
I should add that I went to Development Resources thread and downloaded the spreadsheet. I did a global find for the term XML in the spreadsheet and got no results. That's when I started this thread because I honestly have no idea where else to look. :\
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE4%\yourshortcut.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\yourapp.exe" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
adwinp said:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE4%\yourshortcut.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="%CE2%\yourapp.exe" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
Yeah, that one I know. But I don't know how to create the shortcut with parameters such as command-line arguments.
"\Windows\Jbed.exe" -manage
How would I create a shortcut to that, for example? Do I just use double-double quotes (like in the case of REG files)? So it looks like this:
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE4%\Jbed.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="""%CE2%\Jbed.exe"" -manage" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I've tried that and it didn't work. Is there an escape character that I should be using?
http://msdn.microsoft.com/en-us/library/bb737563.aspx
There isn't anything that explicitly confirms or denies that you'll be able to accomplish what you've asked, so working through examples is the best path.
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE4%\Jbed.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value=""%CE2%\Jbed.exe" -manage" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
One alternative is to create the link yourself and then copy the file.
Best regards,
-boggsie
I am trying to use xml to copy these to files and it doesn't work. What is wrong? What have i to change in order to move them not just copy?
<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\My Documents\My Ringtones\Ring-Vision.wma" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\Ring-Vision.wma" translation="install" />
</characteristic>
</characteristic>
<characteristic type="\My Documents\My Ringtones\relaXation.wav" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\relaXation.wav" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Diagrafeas said:
I am trying to use xml to copy these to files and it doesn't work. What is wrong? What have i to change in order to move them not just copy?
<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\My Documents\My Ringtones\Ring-Vision.wma" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\Ring-Vision.wma" translation="install" />
</characteristic>
</characteristic>
<characteristic type="\My Documents\My Ringtones\relaXation.wav" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Windows\relaXation.wav" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
There are some incorrect functions in your XML.
Try this:
Code:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\My Documents\My Ringtones\Ring-Vision.wma" translation="install" />
<characteristic type="Copy">
<parm name="Source" value="\Windows\Ring-Vision.wma" translation="install" />
</characteristic>
</characteristic>
<characteristic type="\My Documents\My Ringtones\relaXation.wav" translation="install" />
<characteristic type="Copy">
<parm name="Source" value="\Windows\relaXation.wav" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
OK i will try it. I see now that /> where missing. Thanks...
Use mortscript, it's so much easier its scary
Code:
Copy("Windows\Ring-Vision.wma","My Documents\My Ringtones\Ring-Vision.wma")
Copy("Windows\relaXation.wav","Windows\relaXation.wav")
And you're done Oh and if you want it to run on first boot then just add:
Code:
EXEC:\WINDOWS\Mortscriptname.mscr
To an add2config.txt file
I am having problems with an xml provisioning script.
IE and XML notebook displays this ok, so I assume all tags line up, however when checking out in Dotfred task mgr get a mis formed file.
I had a working script (in Dotfred) and added the last 2 \makdir sections and now does not work. Interesting if I delete out these 2 sections still no longer works in Dotfred (but displays ok in IE)
Any help/suggestions appreciated
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wap-provisioningdoc>
<!--Remove empty Copilot sub dir-->
<characteristic type="FileOperation">
<characteristic type="%CE1%\Copilot" translation="install">
<characteristic type="RemoveDir" />
</characteristic>
</characteristic>
<!--Create a new directory under \MY Documents forMagicall Rule file-->
<characteristic type="FileOperation">
<characteristic type="%CE5%\Magicall" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
<!--Create a new directory under \Windows/startup for Resco Apps-->
<characteristic type="FileOperation">
<characteristic type="%CE11%\Resco_Apps" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
<!--Create a new directory under \Windows/startup for Tweaks Apps-->
<characteristic type="FileOperation">
<characteristic type="%CE11%\Tweaks_Apps" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
<!--Create a new directory under \Windows/startup for Cookies Apps-->
<characteristic type="FileOperation">
<characteristic type="%CE11%\Cookies_Apps" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
<!--Create a new directory for splash screen randomiser screen-->
<characteristic type="FileOperation">
<characteristic type="%CE1%\SplashScreenRandomizer\Splashes" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
<!--Create a startup.disabled sub dir-->
<characteristic type="FileOperation">
<characteristic type="%CE2%\Startup.Disabled" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
</wap-provisioningdoc>