Happy Independence Day from all of us at the Connect IT Community! Our US offices will be closed on Monday, July 4th, 2022 in recognition of the holiday. Limited Support staff in the US will be on-call and available for critical Service(s) Down issues only. Normal Support operations in the US will resume on Tuesday, July 5th, 2022.

Uninstall Program from ADD/REMOVE

Chris Anderson
edited January 24 in Solutions

Product Name: Uninstall Program from ADD/REMOVE

Description : Will uninstall most programs from add/remove list

Instructions :

1. Import the procedure

2. Execute it on a system

3. in the pop-up type the exact name from the Add/Remove list



Note - it will scan the names, then call the uninstall string


Comments

  • Jamie Lawrence
    edited March 2017
    Does not seem to uninstall exe files. Any additions to the script that will do that?
  • Matt Stanzel
    Matt Stanzel Member CHOCOLATE MILK
    edited May 2018
    Jamie,

    Unfortunately, some applications are not installed with Windows Installer. Even though they appear in the Add/Remove programs Control Panel applet, they cannot be programmatically uninstalled with WMIC. Those applications use distinct uninstall strings using their own executable (they can't be uninstalled with MSIEXEC).

    This isn't my script, I'm only commenting, but expanding this script to include those may be possible if it can be written to parse the registry for the uninstall string, and attempt execution of it. It is a far more complicated process, however, than using WMIC as this script does.
  • Matt Stanzel
    Matt Stanzel Member CHOCOLATE MILK
    edited May 2018
    Jamie,

    Unfortunately, some applications are not installed with Windows Installer. Even though they appear in the Add/Remove programs Control Panel applet, they cannot be programmatically uninstalled with WMIC. Those applications use distinct uninstall strings using their own executable (they can't be uninstalled with MSIEXEC).

    This isn't my script, I'm only commenting, but expanding this script to include those may be possible if it can be written to parse the registry for the uninstall string, and attempt execution of it. It is a far more complicated process, however, than using WMIC as this script does.
  • Matt Stanzel
    Matt Stanzel Member CHOCOLATE MILK
    edited May 2018
    Jamie,

    Unfortunately, some applications are not installed with Windows Installer. Even though they appear in the Add/Remove programs Control Panel applet, they cannot be programmatically uninstalled with WMIC. Those applications use distinct uninstall strings using their own executable (they can't be uninstalled with MSIEXEC).

    This isn't my script, I'm only commenting, but expanding this script to include those may be possible if it can be written to parse the registry for the uninstall string, and attempt execution of it. Unfortunately, It is a far more complicated process than using WMIC as this script does.
  • Matt Stanzel
    Matt Stanzel Member CHOCOLATE MILK
    edited May 2018
    Unfortunately, some applications are not installed with Windows Installer. Even though they appear in the Add/Remove programs Control Panel applet, they cannot be programmatically uninstalled with WMIC. Those applications use distinct uninstall strings using their own executable (they can't be uninstalled with MSIEXEC).

    This isn't my script, I'm only commenting, but expanding this script to include those may be possible if it can be written to parse the registry for the uninstall string, and attempt execution of it. Unfortunately, It is a far more complicated process than using WMIC as this script does.
  • Aaron Koay
    Aaron Koay Member
    edited May 2018
    For exe based, you can try this:
    ExecuteShellCommand "C:\Program Files or x86\xx\uninstallexe /s"
    Won't guarantee the success of this, but it works on some exe files for me.
    Still wishing that Kaseya could add a function to just add or remove programs easily.
  • Matt Stanzel
    Matt Stanzel Member CHOCOLATE MILK
    edited March 2017
    I apologize for the utter glut of repeat comments. When I clicked "Post Comment" I just got a server error response, so I assumed it wasn't going through.