Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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...

have a look at MsiInstallProduct[^] using REMOVE=ALL
 
Share this answer
 
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
I am working in c++ using MFC, MsiInstallProduct is in c# i guess
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900