/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


How do I write a script in KACE that will unistall all versions of a certatin program?

04/20/2017 1667 views
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

Comments

  • 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.


Community Chosen Answer

1
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

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.
Answered 04/20/2017 by: Nico_K
Red Belt

All Answers

0
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





Answered 04/20/2017 by: rockhead44
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ