1 cask "skype-for-business" do
3 sha256 "85770014696bc422dec96e6986186adf41c12d49f456366294ca1874f3a80834"
5 url "https://download.microsoft.com/download/D/0/5/D055DA17-C7B8-4257-89A1-78E7BBE3833F/SkypeForBusinessInstaller-#{version}.pkg"
6 name "Skype for Business"
7 desc "Microsofts instant messaging enterprise software"
8 homepage "https://www.microsoft.com/en-us/download/details.aspx?id=54108"
12 regex(/SkypeForBusinessInstaller[._-]v?(\d+(?:\.\d+)+)\.pkg/i)
16 depends_on cask: "microsoft-auto-update"
17 depends_on macos: ">= :el_capitan"
19 pkg "SkypeForBusinessInstaller-#{version}.pkg",
22 "choiceIdentifier" => "com.microsoft.autoupdate.fba", # Office16_all_autoupdate_bootstrapper_updater.pkg
23 "choiceAttribute" => "selected",
24 "attributeSetting" => 0,
28 uninstall quit: "com.microsoft.autoupdate2",
29 login_item: "Skype for Business",
31 "com.microsoft.SkypeForBusiness",
32 "com.microsoft.SkypeForBusiness.MeetingJoinPlugin",
34 delete: "/Applications/Skype for Business.app"
37 "/Library/Internet Plug-Ins/MeetingJoinPlugin.plugin",
38 "~/Library/Application Support/com.microsoft.SkypeForBusinessTAP",
39 "~/Library/Application Support/Skype for Business",
40 "~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.debuglogging.plist",
41 "~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.plist",
43 rmdir: "/Library/Application Support/Microsoft"