Myime

Hi,

I develop on the Smartphone (Windows Mobile 6.0 Standard ) platform, i want to by code delete some programs which is installed by CAB, and i can do delete the files which is installed by the CAB files. but i can not delete the name from the "Remove Programs"(Start -> Settings -> More -> Remove Programs) list

I also do the following:

1) delete the according registry key

from [[HKEY_LOCAL_MACHINE\SOFTWARE\Apps]

or change the [HKEY_LOCAL_MACHINE\SOFTWARE\Apps\<App1>] "Instl" 1- > 0

but i also see the <App1> from the list.

and i also restart the Device.

2) i want to delete the fileof the directory: \Windows\AppMgr,

but it popup a window ,said : i can not delete it

why

and how can i do that

or How can i Call the "Remove Program" (what is the App Name ))to delete the CAB/App

Thanks.




Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

PatickG

You can use DMProcessConfigXML API in combination with the uninstall provider.

http://msdn2.microsoft.com/en-us/library/Aa455977.aspx

I am sure a google or a forum search will give you an example on how to use that.





Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

Myime

Thanks, PaticjG.

I will try it.

You give me a good way to solve it.

But i think it need some prividge or Manager /Authenticated User roles

right






Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

PatickG

Yes, Manager or AuthenticatedUser is required.



Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

Myime

Hi, PatickG.

You are right.

It work well, Thank you very much.

and Does Manager or Autherticated means the User which can use the Phone ,or My App on the Phone must through the Signed by Microsoft or OEM

Thanks.






Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

PatickG

Depending on the security policy i would say you would need to be signed by a trusted certificate authority.

If not it could be possible that the user does not get a question if he wants to allow your unsigned programm.

You could use the Security Configuration Manager powertoy (seperate download for WM5, included in WM6 SDK) to test you app with different configurations. You also can test the app with the SDK Certificates.





Re: Smart Devices Native C++ Development How to delete the name from the Delete Files List from "Remove Programs"

Myime

Thanks, PatickG.

I think it will work, if my App were not Signed, and can not pop up WARNING as intalling the unsigned CAB.

It can work, is my intention.

Thanks.