Moving Files using xml - Windows Mobile

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

Related

wap-provisioningdoc for Verizon

How do I change this for Verizon?
<wap-provisioningdoc>
<characteristic type="CM_Networks">
<characteristic type="ISP: MSN">
<parm name="DestId"
value="{C1D06580-B364-45ec-8421-5ACF34129C58}" />
</characteristic>
</characteristic>
</wap-provisioningdoc>

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

Creating installation cab (file ops) with registry tweaks

Hi, after looking for long time on this forum and on google, I'm stuck
I'm looking a way, with tools MAKECAB, to create an autoinstall file with registry tweak.
The goal is to purpose an addons for TF3D Config, and auto apply all tweaks during installation process.
So
I already have this :
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\System\GDI\GLYPHCACHE">
<parm name="limit" value="131072" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="ACResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="BattResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P6">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P8">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P9">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\Phone">
<parm name="Vol" value="34952" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockEnable" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockTimeout" value="5" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
I just want to copy a file name tweaks_custom.xml to TF3D Install directory
Here my try :
Code:
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="OSVersionMin" value="4.0" />
<parm name="OSVersionMax" value="6.99" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="-536870912" />
<parm name="AppName" value="Celogeek TF3D Custom Tweaks" />
<parm name="InstallDir" value="%CE1%\Diamond TF3D Config" translation="install" />
<parm name="NumDirs" value="1" />
<parm name="NumFiles" value="1" />
<parm name="NumRegKeys" value="0" />
<parm name="NumRegVals" value="14" />
<parm name="NumShortcuts" value="0" />
</characteristic>
<characteristic type="FileOperation">
<characteristic type="%CE1%\Diamond TF3D Config" translation="install">
<characteristic type="MakeDir" />
<characteristic type="tweaks_custom.xml" translation="install">
<characteristic type="Extract">
<parm name="Source" value="ctweaks.001" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKLM\System\GDI\GLYPHCACHE">
<parm name="limit" value="131072" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\SIM_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\MMC_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Drivers\SDCARD\ClientDrivers\Class\NAND_Class">
<parm name="DisablePowerManagement" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="ACResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeouts">
<parm name="BattResumingSuspendTimeout" value="90" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P6">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P8">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\HTC\Camera\P9">
<parm name="Enable" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\Phone">
<parm name="Vol" value="34952" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockEnable" value="0" datatype="integer" />
</characteristic>
<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="AutoDeviceLockTimeout" value="5" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
How can I pack it to a cab, and make it work ?
rename it _setup.xml
use makecab.exe like this from command line:
makecab.exe _setup.xml cabfilename.cab
your second xml doesn't look wellformed to me, it should begin like the first one with <wap-provisioningdoc> among other things.
geistteufel said:
How can I pack it to a cab, and make it work ?
Click to expand...
Click to collapse
Take a look in this thread...
http://forum.xda-developers.com/showthread.php?t=409306
ok thanks
its for registry tweak only
I know how to do that
I was looking for a free and easy way (no installing visual studio or big soft), to make installer with local file in cab and registry tweaks
for registry I have found makecab, work fine, under windows.
for copie file with local resource (in the cab), I have found pocketpc-cab (on linux)
I'm not really happy to go and back, and make 2 soft ...
WinCE Cab was my better solution, but it's not free.
how can I make it for free ?

New Hotfix " Update for HTC HD2 (O2) - Annual Calendar appointments"

Hi.
Just found this Hotfix on our HTC page here in GER.
The file is called "_HTC HD2_LEO08878.exe" and has 471KB.
Setup.xml sais that it does the following:
- <wap-provisioningdoc>
- <characteristic type="Install">
<parm name="InstallPhase" value="install" />
<parm name="OSVersionMin" value="4.0" />
<parm name="OSVersionMax" value="6.99" />
<parm name="BuildNumberMin" value="0" />
<parm name="BuildNumberMax" value="-536870912" />
<parm name="AppName" value="HotFix LEO08878" />
<parm name="NoUninstall" value="1" />
<parm name="InstallDir" value="%CE1%\LEO08878" translation="install" />
<parm name="NumDirs" value="2" />
<parm name="NumFiles" value="16" />
<parm name="NumRegKeys" value="1" />
<parm name="NumRegVals" value="1" />
<parm name="NumShortcuts" value="0" />
</characteristic>
- <characteristic type="FileOperation">
- <characteristic type="%CE2%" translation="install">
<characteristic type="MakeDir" />
- <characteristic type="AE_Add_New_Contact.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AE_ADD~1.001" />
</characteristic>
</characteristic>
- <characteristic type="AE_inputfield_105.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AE_INP~1.002" />
</characteristic>
</characteristic>
- <characteristic type="L_AE_Btn_Description_Input.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="L_AE_B~1.003" />
</characteristic>
</characteristic>
- <characteristic type="AttendeeDialog.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="ATTEND~1.004" />
</characteristic>
</characteristic>
- <characteristic type="AE_inputfield_170.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AE_INP~2.005" />
</characteristic>
</characteristic>
- <characteristic type="AfeXmlViewAttendeeListView.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AFEXML~2.006" />
</characteristic>
</characteristic>
- <characteristic type="HTCAppointment.exe.0407.mui" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="HTCAPP~1.007" />
</characteristic>
</characteristic>
- <characteristic type="AppointmentMsgBoxA.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="APPOIN~1.008" />
</characteristic>
</characteristic>
- <characteristic type="L_AE_Dotted_Line.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="L_AE_D~1.009" />
</characteristic>
</characteristic>
- <characteristic type="AfeXmlProposeNewTimeDlg.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AFEXML~1.010" />
</characteristic>
</characteristic>
- <characteristic type="AE_Dotted_Line.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AE_DOT~1.011" />
</characteristic>
</characteristic>
- <characteristic type="AE_Btn_Item_Selection.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="AE_BTN~1.012" />
</characteristic>
</characteristic>
- <characteristic type="HTCAppointment.exe" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="HTCAPP~1.013" />
</characteristic>
</characteristic>
- <characteristic type="L_AE_Btn_Item_Selection.png" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="L_AE_B~2.014" />
</characteristic>
</characteristic>
- <characteristic type="ViewAppointment.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="VIEWAP~1.015" />
</characteristic>
</characteristic>
- <characteristic type="NewAppointment.xml" translation="install">
- <characteristic type="Extract">
<parm name="Source" value="NEWAPP~1.016" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
- <characteristic type="Registry">
- <characteristic type="HKLM\Drivers\BuiltIn\HotFix">
<parm name="AppointmentEditor_version" value="20100702-00" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
HTC sais it does the following:
This update for HTC HD2 (O2) improves the handling of annually repeated calendar events.
Click to expand...
Click to collapse
I have never experienced any issues with annual appointments.
Has anybody recognized some improvements brought by this (small) Hotfix?
Cheers.
Has nobody tried it? For me installation doesn't work, because I'm not on stock.

[Q] problem with xml provisioning file and dotfred task manager

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>

Categories

Resources