Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

How to uninstall a software using c++ in windows.
any Api is there..

i need to uninstall the .exe s/w
Posted
Comments
Legor 12-Jun-12 5:56am    
What have you tried so far?
@BangIndia 12-Jun-12 5:59am    
i tried using the wmi class..

1 solution

have a look at Windows Installer[^] functionality

Specifically MsiConfigureProduct[^]
 
Share this answer
 
Comments
@BangIndia 12-Jun-12 5:38am    
how to do it for .exe package.
this is for msi package..
barneyman 12-Jun-12 5:48am    
if the exe you're trying to uninstall has not installed itself using MSI facilities, then you're stuck ... delete the exe and hope?

Does it turn up in Control Panel-Add/Remove Programs? if it does, it has used MSI
@BangIndia 12-Jun-12 5:56am    
Thanks for the response ..
which API is used to un-install the product.
then gave only for reinstall right .
barneyman 12-Jun-12 5:59am    
second line of that second link ...

"The MsiConfigureProduct function installs or uninstalls a product."
@BangIndia 12-Jun-12 6:06am    
Final one question.
i installed the vlc media player.
how to find the product code.
i used this path to read the product code for other proudct.
but this vlc is not having.
where i have to get the proudct code..

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

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