View Full Version : API for add/remove programs?

01-20-2005, 10:39 PM
I am looking for an API that will allow me to remove a windows program if it is installed, and have come up with a big zero so far. Does anyone know which API I should be using?


01-20-2005, 11:42 PM
Is there an API? I always figured installed programs left their install/uninstall paths in the registry or a configuration file. An API for calling uninstallers seems a little excessive...

01-21-2005, 12:27 AM
Yea, I don't think there's an api for that. Like cfc said, its all done in the registry. "Remove program" only calls the program's uninstall program or script.

01-20-2007, 04:11 AM
I have created a Public Domain package which has an API for getting the metadata of all the programs in the Add/Remove program list, and can even automatically execute the uninstall program for one of them:


Hope it helps someone!

Kevin Grigorenko

10-16-2009, 09:31 PM
Hi Kevin,

I have checked the code you left in codeplex (thanks!) but I dont know how it can work to write a POC that installs an MSI (receving th efile as argument) and uninstalls a program. Something like controlling the "API" of add/remove programs.

Best, pablo