Hi all,

I am trying to create a script to uninstall Office 2011 for Office 2016 deployment.

I have a uninstall.sh file . which looks like the following. also I have created a script in Dell KACE with that  (Type:- online KScript , depemdemcies :- uninstall.sh

Task 1

Verfy that the directory "/use/bin" exists.

on Success


Launch bin\sh with params $(KACE_DEPENDENCY_DIR)/uninstall.sh ”.

uninstall.sh file exactly looks like this.

rm -R '/Applications/Microsoft Communicator.app/'
rm -R '/Applications/Microsoft Messenger.app/'
rm -R '/Applications/Microsoft Office 2011/'
rm -R '/Applications/Remote Desktop Connection.app/'
rm -R '/Library/Application Support/Microsoft/'
rm -R /Library/Automator/*Excel*
rm -R /Library/Automator/*Office*
rm -R /Library/Automator/*Outlook*
rm -R /Library/Automator/*PowerPoint*
rm -R /Library/Automator/*Word*
rm -R '/Library/Automator/Add New Sheet to Workbooks.action'
rm -R '/Library/Automator/Create List from Data in Workbook.action'
rm -R '/Library/Automator/Create Table from Data in Workbook.action'
rm -R '/Library/Automator/Get Parent Presentations of Slides.action'
rm -R '/Library/Automator/Get Parent Workbooks.action'
rm -R '/Library/Automator/Set Document Settings.action'
rm -R '/Library/Fonts/Microsoft/'
rm -R /Library/Internet\ Plug-Ins/*SharePoint*
rm -R /Library/LaunchDaemons/*microsoft*
rm -R /Library/Preferences/*microsoft*
rm -R /Library/PrivilegedHelperTools/*microsoft*

when I run this script. its pushing the uninstall.sh to Mac and I can see the file in '/Library/Application Support/Dell/KACE/data/kbots_cache/packages/kbots/201/'

but its error out as "ProcessOps_LaunchProgram: Launch failed: 1 exitCode=126"

Could someone help me out .



0 Comments   [ + ] Show Comments


Please log in to comment


Try using "Launch a program" and just call "$(KACE_DEPENDENCY_DIR)/uninstall.sh".
Answered 12/08/2015 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity