Click here to Skip to main content
14,550,454 members
Rate this:
Please Sign up or sign in to vote.
See more:
how to uninstall application programatically in mfc
Posted
Comments
Albert Holguin 4-Nov-14 10:36am
   
Is this for an application that you installed? ...or is it an application that someone else installed? Did the application write to the registry? Did the application store to any protected directories (such as Windows\system32 or even the Program Files directories)?
Nitin R G 7-Nov-14 5:16am
   
it is the applications already installed...Now i am able to list applications n uninstall it. But problem is its not listing all the applications...
Rate this:
Please Sign up or sign in to vote.

Solution 1

have a look at MsiInstallProduct[^] using REMOVE=ALL
   
Comments
Nitin R G 3-Nov-14 6:10am
   
Now I am able to uninstall the application...but how to do it silently(without user interaction) ???
barneyman 4-Nov-14 15:38pm
   
read the docs - http://msdn.microsoft.com/en-us/library/aa370389(v=vs.85).aspx
Rate this:
Please Sign up or sign in to vote.

Solution 2

I am working in c++ using MFC, MsiInstallProduct is in c# i guess
   
Comments
Orjan Westin 4-Nov-14 4:28am
   
If you follow the link, you'll see it's a C function in the MSI system API. Do your homework, read up, try to solve the problem using what you have learned, and if you still have problems, post your code and say how it is not working. Nobody will write you a complete solution.
Nitin R G 4-Nov-14 5:13am
   
Thank you...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100