Uninstalling Program Using DeviceProcessConfigXml

  • Thread starter Thread starter Fatih Iþýkhan
  • Start date Start date
F

Fatih Iþýkhan

Hi All,

I have developed a kind of device loader, which starts automatically
when the device cradled. Using the software i want to uninstall a
certain software. When i call

m_rapi.DeviceProcessConfigXml(provisionFile, out output);

with the following xml, it doesn't uninstall. However for some
programs (i.e. compact framework or compact sql) it works pretty
fine.

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

Is it that the problem is with the way of preparing the cab file? Is
there anything that i should be doing with the setting of cab project?
And one more question, how do i simulate exactly the remove facility
of remove programs in control panel?

Thanks,
 
The Uninstall CSP does more than replicate the uninstall applet in Windows
Mobile in that it will close your application if it is already running - I'm
not sure if the uninstall applet does this.

A couple of things to check, the NoUninstall property for the CAB is set to
false. Check the program name equals the manufacturer plus the product name
ie: if the Manufacturer = "My Comp" and ProductName = "My App". The program
name should read: "My Comp My App".
 
TheUninstallCSP does more than replicate theuninstallapplet in Windows
Mobile in that it will close your application if it is already running - I'm
not sure if theuninstallapplet does this.

A couple of things to check, the NoUninstall property for the CAB is set to
false. Check the program name equals the manufacturer plus the product name
ie: if the Manufacturer = "My Comp" and ProductName = "My App". The program
name should read: "My Comp My App".

The DeviceProcessConfigXml returns -2147213304 and the output XML is:

<wap-provisioningdoc>
<characteristic type="UnInstall">
<characteristic type="Company Name - Program Name">
<parm-error name="uninstall" value="1"/></characteristic>
</characteristic></wap-provisioningdoc>

I couldn't find anything meaningful, any idea?

Thanks,
 
Back
Top