Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    API for add/remove programs?

    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?

    Thanks
    Taurk

  • #2
    cfc
    cfc is offline
    Regular Coder
    Join Date
    Dec 2004
    Location
    Keswick, Ontario
    Posts
    251
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

  • #3
    Regular Coder
    Join Date
    Oct 2004
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PublicDomain

    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:

    http://www.codeplex.com/PublicDomain

    Hope it helps someone!

    Kevin Grigorenko

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not a clue about how to install/uninstall a program from a .NET App

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •