Created
April 25, 2015 20:12
-
-
Save Leask/09dcd7770a8bb33ecb62 to your computer and use it in GitHub Desktop.
How to completely remove Office for Mac 2011?!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Original from: https://www.v2ex.com/t/174943#reply12 | |
# more informations: https://support.microsoft.com/en-us/kb/2398768 | |
osascript -e 'tell application "Microsoft Database Daemon" to quit' | |
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*' | |
OFFICERECEIPTS=$(pkgutil --pkgs=com.microsoft.office*) | |
for ARECEIPT in $OFFICERECEIPTS; do | |
pkgutil --forget $ARECEIPT | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment