How do I write a script in KACE that will unistall all versions of a certatin program?
I have multiple versions of Bomgar 15.2.2 installed across my environment and I need to uninstall it on about 100 machines. I don't wan to do it manually, but I can't seem to get a script gong that will remove them all. Please help.
1 Comment
[ + ] Show comment
-
One way is to navigate to Scripts>Configuration Policies and select uninstaller. From the drop down list you can choose the software and version you wan to uninstall. Copy the File & Parameters into a line in a text file on your PC. Repeat this for every version you wish to uninstall. Then create a new Script and for a Task, select Run a Batch file. Now copy all the contents in your text file to the window. This will run each uninstall without checking versions, so you will get a lot of errors, but it should uninstall. You could write a separate task for each version having it check to see if it installed and if so, run the uninstall command. - DaveMT 7 years ago
Answers (2)
Please log in to answer
Posted by:
Nico_K
7 years ago
First step:
Create a smart label which contains all machines where the software is installed.
Second step:
Create a script for uninstall the software like that (it is for java uninstall)
Launch “$(KACE_SYS_DIR)\cmd.exe ” with params “/c wmic product where ”name like 'java%%'“ call uninstall”
Create a smart label which contains all machines where the software is installed.
Second step:
Create a script for uninstall the software like that (it is for java uninstall)
Launch “$(KACE_SYS_DIR)\
Third step:
Run the script against this label regulary.
When the software has been uninstalled the machines drop out of the label so it won't run against this anymore.
When the software has been uninstalled the machines drop out of the label so it won't run against this anymore.
Posted by:
rockhead44
7 years ago
What have you tied so far?
I create a batch file for such jobs and call the GUIDs with the msiexec /x command. Here's an example (Adobe Flash Player):
@echo off
MsiExec.exe /X{A028A66B-0FC8-4C97-8A8C-2E6CE3548B55} /QN
MsiExec.exe /X{6E6D2BB7-B844-4842-B62D-0A7F0AA7884E} /QN
MsiExec.exe /X{316462DB-82C6-4856-BA1F-2FDFDC08799F} /QN
MsiExec.exe /X{381EE08C-2992-4F52-9A69-4997974C0EEE} /QN
exit