彻底卸载Office

Thu 29 January 2015 | tags:

用SP包升级会搞得比较乱套,不如先将老版本卸载掉,再装集成最新SP的安装,所以我将官方给出的步骤集合在了一起

#!/bin/bash

sudo rm -rf /Applications/Microsoft\ Office\ 2011
sudo rm -f ~/Library/Preferences/com.microsoft.*
sudo rm -f /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
sudo rm -f /Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper
sudo rm -f /Library/Preferences/com.microsoft.office.licensing.plist
sudo rm -rf /Library/Application\ Support/Microsoft
sudo rm -rf ~/Library/Application\ Support/Microsoft
sudo rm -rf /Library/Fonts/Microsoft

pkgutil --pkgs | fgrep com.microsoft.office |
 sudo xargs -n1 pkgutil --forget