[Windows Phone 7 Development and Hacking] xboxmod:
Hi

For now provision xml are the only way to write in all the registry entries on HTC Device,

But this kind of files have the ability to do a lot more.

-The following list shows some of the various capabilities of provxml files.

To Deploy Provxml you have 2 choices for now:

HTC-ProvXml-Deployer

Advanced config 1.1.0.1(sometime doesn't work!!)

-Write Registry key & value

This example Write a key (Registry\HKLM\System\Accessibility), including the associated values and subkeys.

[COLOR="blue"]<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\System\Accessibility">
<parm name="CompactMode" value="1" datatype="integer" />
<parm name="TTY" value="0" datatype="integer" />
<parm name="telecoil_UI" value="0" datatype="integer" />
<parm name="telecoil" value="0" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-Delete Registry key

This example delete the key (Registry\HKLM\Software\Microsoft\Test), including the associated values and subkeys.

[COLOR="blue"]<wap-provisioningdoc>
<characteristic type="Registry">
<nocharacteristic
type="HKLM\Software\Microsoft\Test"/>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-Delete Registry Value

This example delete a value (TestValue) from a registry key (Registry\HKLM\Software\Microsoft\Test)

[COLOR="blue"]<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Test">
<noparm name="TestValue" />
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-Create Folder

This example create a folder (test) into windows folder (\windows\Test\)

[COLOR="blue"]<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows\test" translation="install">
<characteristic type="MakeDir" />
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-Copy File & Change file Attributes

This example copy a file (test.png) from my ringtones folder to windows folder (\windows\Test.png) & ChangeAttributes

R Read-only

A Archive

S System

H Hidden

[COLOR="blue"]<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="\Windows\" translation="install">
<characteristic type="MakeDir" />
<characteristic type="test.png" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\My Documents\My Ringtones\test.png" translation="install" />
<parm name="RemoveAttributes" value="RH" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-Set Wifi settings

This example show how to preconfigure your wifi network

[COLOR="Blue"]<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID"> (do not change this value and delete this comment)
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>

<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="YourSSID to insert">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="yourPWD to insert"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>[/COLOR]

-Add Favorite

This example add 2 favorites in IE

[COLOR="Blue"]<wap-provisioningdoc>

<characteristic type="BrowserFavorite">
<characteristic type="Favorite1">
<parm name="URL" value="http://www.Favorite1.com/" />
</characteristic>
<characteristic type="Favorite2">
<parm name="URL" value="http://www.Favorite2.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>[/COLOR]

-set timezone

[COLOR="Blue"]<wap-provisioningdoc>
<characteristic type="Clock">
<parm name="TimeZone" value="1200"/>
</characteristic>
</wap-provisioningdoc>[/COLOR]

Please submit provxml method you have and I will update this post.

thanks
​