Uninstall Office 2011 (Mac) Via Dell KACE
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
Verfy that the directory "/use/bin" exists.
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 .