Created
February 20, 2014 17:45
-
-
Save thewellington/9119343 to your computer and use it in GitHub Desktop.
Removes Office 2011 for our Office 265 Migration #mac #office
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/bash | |
# | |
# Uninstall Office for Mac 2011 per http://support.microsoft.com/kb/2398768 | |
# | |
# by [email protected] | |
# Remove Office 2011 | |
rm -Rf /Applications/Microsoft\ Office\ 2011 | |
# Remove Office Prefs | |
rm -f ~/Library/Preferences/com.microsoft* | |
rm -Rf ~/Library/Preferences/Office\ 2011 | |
rm -Rf ~/Library/Application\ Support/Office\ 2011 | |
# Remove Licensing | |
launchctl unload /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist | |
rm -f /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist | |
rm -f /Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper | |
rm -f /Library/Preferences/com.microsoft.office.licensing.plist | |
# Remove /Library/Application Support/Microsoft | |
rm -Rf /Library/Application\ Support/Microsoft | |
# Remove Receipts | |
rm -Rf /Library/Receipts/Office2011_* | |
rm -Rf /private/var/db/receipts/com.microsoft.office* | |
# Skipping "Step 7" we want to keep some of this data | |
# remove fonts | |
rm -Rf /Library/Fonts/Microsoft | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment