Uninstalling Applications using XML

Send Feedback

Remote uninstallations can be performed on Windows Mobile Version 5.0 devices by sending an XML configuration file to the device. You can also send a sample XML file to a target device to determine what applications are currently installed on the device, enabling you to verify or modify your uninstallation XML file as needed.

The following sample XML enables you to query for a list of all installed applications on the target device.

<wap-provisioningdoc>
    <characteristic-query type="UnInstall" recursive="false"/>
</wap-provisioningdoc>

The following sample XML shows the result that is returned when no applications are installed.

<wap-provisioningdoc>
            <characteristic type="UnInstall" recursive="false"/>
</wap-provisioningdoc>

The following sample XML shows the result that is returned when there are applications installed on the target device, such as Blackjack and Minesweeper.

<wap-provisioningdoc>
    <characteristic type="UnInstall" recursive="false">
        <characteristic type="Microsoft Blackjack">
            <parm name="uninstall" value="0"/>
        </characteristic>
        <characteristic type="Microsoft Minesweeper">
            <parm name="uninstall" value="0"/>
        </characteristic>
    </characteristic>
</wap-provisioningdoc>

The following sample XML shows how to uninstall an application called My Application:

<wap-provisioningdoc> 
   <characteristic type="UnInstall"> 
      <characteristic type="My Application"> 
         <parm name="uninstall" value="1" />
      </characteristic> 
   </characteristic> 
</wap-provisioningdoc>

See Also

Uninstalling Applications

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.