PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Uninstalling Program Using DeviceProcessConfigXml

Reply

Uninstalling Program Using DeviceProcessConfigXml

 
Thread Tools Rate Thread
Old 21-04-2008, 02:06 PM   #1
Fatih Işıkhan
Guest
 
Posts: n/a
Default Uninstalling Program Using DeviceProcessConfigXml


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,
  Reply With Quote
Old 22-04-2008, 12:08 PM   #2
Simon Hart [MVP]
Guest
 
Posts: n/a
Default RE: Uninstalling Program Using DeviceProcessConfigXml

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,
>

  Reply With Quote
Old 30-04-2008, 03:08 PM   #3
Fatih Işıkhan
Guest
 
Posts: n/a
Default Re: Uninstalling Program Using DeviceProcessConfigXml

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,
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off