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?
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...
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!
10-16-2009, 09:31 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.