PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Uninstalling Program Using DeviceProcessConfigXml
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Uninstalling Program Using DeviceProcessConfigXml
![]() |
Uninstalling Program Using DeviceProcessConfigXml |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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, |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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". -- Simon Hart Visual Developer - Device Application Development MVP http://simonrhart.blogspot.com "Fatih Işıkhan" wrote: > 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, > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
On Apr 22, 2:08 pm, Simon Hart [MVP] <srhart...@yahoo.com> wrote:
> 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". > -- > Simon Hart > Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com > > "Fatih Işıkhan" wrote: > > Hi All, > > > I have developed a kind of device loader, which starts automatically > > when the device cradled. Using the software i want touninstalla > > certain software. When i call > > > m_rapi.DeviceProcessConfigXml(provisionFile, out output); > > > with the followingxml, it doesn'tuninstall. 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 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, |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

