[Q] problem with xml provisioning file and dotfred task manager - Windows Mobile Development and Hacking General

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>

Related

t-mob mda II extended rom details

hi everyone i have checked extended rom and found following, there ara some cabs that i dont know what are they can some one check and try to explain?
MP-Hermes-Camera-patch-060613 :
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\HTC\Camera\General" translation="filesystem" >
<parm name="EnableStorageCardPlugInMsg" datatype="integer" value="2" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
--------------------------------------------------
MT_PC_Hermes_TMO_REG_060612 :
related to t-mob phone skin
------------------------------------------------------
Patch_RTPlugInEx2:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows" translation="install">
<characteristic type="MakeDir">
</characteristic>
</characteristic>
</characteristic>
<characteristic type="FileOperation">
<characteristic type="\Windows\RTPlugInEx2.dll" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\temp\RTPlugInEx2.dll" translation="install"/>
</characteristic>
</characteristic>
<characteristic type="\temp\RTPlugInEx2.dll" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
-------------------------------------------------
PP_pIESetting_TMUK_050906:
pocket ie favorites etc
------------------------------
MT_Account-MMS:
mms setup
--------------------------------------------------
P_rilgsm_patch:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows\rilgsm.dll" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\temp\rilgsm.dll" translation="install"/>
</characteristic>
</characteristic>
<characteristic type="\temp\rilgsm.dll" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
------------------------------------------------
PP_HER_TMUK-UXC_12JUN06 :
t-mobile today plugin
---------------------------------------------------
ST_Her_BT_FIR_Param612:
<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows" translation="install">
<characteristic type="MakeDir">
</characteristic>
</characteristic>
</characteristic>
<characteristic type="FileOperation">
<characteristic type="\Windows\BT_FIR_Param.txt" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\temp\BT_FIR_Param.txt" translation="install"/>
</characteristic>
</characteristic>
<characteristic type="\temp\BT_FIR_Param.txt" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="FileOperation">
<characteristic type="\Windows" translation="install">
<characteristic type="MakeDir">
</characteristic>
</characteristic>
</characteristic>
<characteristic type="FileOperation">
<characteristic type="\Windows\BT_Name_INFO.txt" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\temp\BT_Name_INFO.txt" translation="install"/>
</characteristic>
</characteristic>
<characteristic type="\temp\BT_Name_INFO.txt" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
thanks nolovelust I am currently using the Imate latest rom on my Vario II with some of the tmobile cabs. Does anyone know what the other cabs do?

green battery icon on t-mobile roms fixed!

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

parameter in a .lnk file in provxml

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>

Quick Question: What's the proper syntax for creating a shortcut in a provisional XML

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

Moving Files using xml

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

Categories

Resources