homebrew-cask/Casks/microsoft-auto-update.rb

49 lines
2.0 KiB
Ruby

cask "microsoft-auto-update" do
version "4.29.20110804"
sha256 "7ede97d524ce7e7869a4033d25270057e670588886f7a0e02628cc7fcb4f7851"
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_AutoUpdate_#{version}_Updater.pkg",
verified: "officecdn-microsoft-com.akamaized.net/"
appcast "https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://go.microsoft.com/fwlink/?linkid=830196"
name "Microsoft Auto Update"
desc "Provides updates to various Microsoft products"
homepage "https://docs.microsoft.com/officeupdates/release-history-microsoft-autoupdate"
auto_updates true
pkg "Microsoft_AutoUpdate_#{version}_Updater.pkg"
uninstall quit: [
"com.microsoft.autoupdate2",
"com.microsoft.autoupdate.fba",
"com.microsoft.errorreporting",
],
launchctl: [
"com.microsoft.autoupdate.helpertool",
"com.microsoft.autoupdate.helper",
"com.microsoft.update.agent",
],
pkgutil: [
"com.microsoft.package.Microsoft_AutoUpdate.app",
"com.microsoft.package.Microsoft_AU_Bootstrapper.app",
],
delete: "/Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper"
zap trash: [
"~/Library/Application Support/Microsoft AutoUpdate",
"~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate.fba",
"~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate2",
"~/Library/Caches/com.microsoft.autoupdate.fba",
"~/Library/Caches/com.microsoft.autoupdate2",
"~/Library/Cookies/com.microsoft.autoupdate.fba.binarycookies",
"~/Library/Cookies/com.microsoft.autoupdate2.binarycookies",
"~/Library/Preferences/com.microsoft.autoupdate.fba.plist",
"~/Library/Preferences/com.microsoft.autoupdate2.plist",
"~/Library/Saved Application State/com.microsoft.autoupdate2.savedState",
],
rmdir: [
"~/Library/Caches/Microsoft/uls",
"~/Library/Caches/Microsoft",
]
end