Created
December 20, 2011 10:44
-
-
Save runlevel5/1501174 to your computer and use it in GitHub Desktop.
Script to remove Office 2011 from OS X [Ruby]
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 ruby -wKU | |
require 'fileutils' | |
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 | |
FileUtils.rm_rf(path) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment