Created
June 27, 2011 14:12
-
-
Save ssbarnea/1048927 to your computer and use it in GitHub Desktop.
Script to remove Office 2011 from OS X - one essential feature that was dropped from 2011 release ;)
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
#! /usr/bin/env python | |
import os, sys | |
paths = ["/Applications/Microsoft Office 2011/", | |
"/Applications/Remote Desktop Connection", | |
"/Applications/Microsoft Communicator", | |
"/Applications/Microsoft Messenger", | |
"/Users/username/Library/Preferences/Microsoft/Office 2011/", | |
"/~/Library/Application Support/Microsoft/", | |
"/~/Documents/Microsoft User Data/", | |
"/Library/Automator", | |
"/Library/Application Support/Microsoft/MAU2.0/", | |
"/Library/Application Support/Microsoft/MERP2.0/", | |
"/Library/Fonts/Microsoft", | |
"/Library/Preferences/com.microsoft.office.licensing.plist", | |
"/Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist", | |
"/Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper", | |
# "/Library/Internet Plug-Ins/<all SharePoint files> | |
"/var/db/receipts/com.microsoft.office.*" | |
] | |
for path in paths: | |
os.system("sudo rm -rf %s" % path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ruby version here:
https://gist.github.com/1501174