homebrew-cask/Casks/microsoft-office.rb

29 lines
1.2 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'microsoft-office' do
2014-11-04 08:00:03 +08:00
version :latest
sha256 :no_check
2015-11-13 02:42:13 +08:00
url 'http://officecdn.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/OfficeMac/Microsoft_Office_2016_Installer.pkg'
name 'Microsoft Office 2016'
2015-06-29 14:32:18 +08:00
homepage 'https://www.microsoft.com/mac'
2014-11-04 08:00:03 +08:00
license :commercial
2015-11-13 02:42:13 +08:00
pkg 'Microsoft_Office_2016_Installer.pkg'
2015-11-13 02:42:13 +08:00
uninstall :pkgutil => [
'com.microsoft.package.*',
'com.microsoft.pkg.licensing',
],
2015-11-13 02:42:13 +08:00
:launchctl => 'com.microsoft.office.licensingV2.helper.plist'
zap :delete => [
'/Library/LaunchDaemons/com.microsoft.office.licensingV2.helper.plist',
'/Library/PrivilegedHelperTools/com.microsoft.office.licensingV2.helper',
'/Library/Preferences/com.microsoft.office.licensingV2.plist',
'~/Library/Preferences/com.microsoft.autoupdate2.plist',
],
:rmdir => [
'~/Library/Containers/com.microsoft.Office365ServiceV2',
'~/Library/Group Containers/UBF8T346G9.*',
]
2014-11-04 08:00:03 +08:00
end