Will uninstall most programs
Will uninstall most programs from add/remove list
I was able to uninstall both DropBox & Firefox from 30+ machines in a matter of clicks. This took less than 2 minutes to complete.
Was hoping this would be my solution for uninstalling the different AV products at newly acquired clients. we have one client that has Avast Antivirus Free installed everywhere and this didn't touch it. says it ran successfully. but the software is still installed.
I like this in general, but the down side is that it does not add the no reboot switch for those software that will reboot right away after installation, does this work on both software installed via MSI and EXE?
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.
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.
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.
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.
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.
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.
Does not seem to uninstall exe files. Any additions to the script that will do that?