Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Adobe Creative Cloud uninstall #68039

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 100 additions & 15 deletions Casks/adobe-creative-cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,106 @@
homepage 'https://creative.adobe.com/products/creative-cloud'

installer script: {
executable: "#{staged_path}/Creative Cloud Installer.app/Contents/MacOS/Install",
args: ['--mode=silent'],
sudo: true,
executable: "#{staged_path}/Creative Cloud Installer.app/Contents/MacOS/Install",
args: ['--mode=silent'],
sudo: true,
print_stderr: false,
reitermarkus marked this conversation as resolved.
Show resolved Hide resolved
}

uninstall launchctl: [
'com.adobe.AdobeCreativeCloud',
'com.adobe.acc.installer',
'com.adobe.agsservice',
'Adobe_Genuine_Software_Integrity_Service',
],
delete: [
'/Applications/Adobe Creative Cloud/Adobe Creative Cloud',
'/Applications/Utilities/Adobe Creative Cloud',
'/Applications/Utilities/Adobe Application Manager',
],
rmdir: '/Applications/Utilities/Adobe Installers'
uninstall_postflight do
stdout, * = system_command '/bin/launchctl', args: ['print', "gui/#{Process.uid}"]
ccx_processes = stdout.lines.grep(%r{com\.adobe\.CCXProcess\.\d{5}}) { $& }.uniq
ccx_processes.each { |id| system '/bin/launchctl', 'bootout', "gui/#{Process.uid}/#{id}" }
end

uninstall early_script: {
executable: '/usr/bin/pluginkit',
args: ['-r', '/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex'],
must_succeed: false,
print_stderr: false,
},
launchctl: [
'Adobe_Genuine_Software_Integrity_Service',
'com.adobe.AdobeCreativeCloud',
'com.adobe.acc.installer',
'com.adobe.acc.installer.v2',
'com.adobe.ccxprocess',
reitermarkus marked this conversation as resolved.
Show resolved Hide resolved
],
quit: 'com.adobe.acc.AdobeCreativeCloud',
signal: [['QUIT', 'com.adobe.accmac']],
script: {
executable: '/usr/bin/pkill',
args: ['Adobe Desktop Service', 'AdobeIPCBroker', 'AdobeCRDaemon'],
must_succeed: false,
},
delete: [
"#{appdir}/Adobe Creative Cloud/*Adobe Creative Cloud",
"#{appdir}/Adobe Creative Cloud/Icon?",
"#{appdir}/Adobe Creative Cloud/.Uninstall*",
'/Applications/Utilities/Adobe Creative Cloud*',
'/Applications/Utilities/Adobe Application Manager',
'/Applications/Utilities/Adobe Sync',
'/Applications/Utilities/Adobe Installers/Uninstall Adobe Creative Cloud',
'/Applications/Utilities/Adobe Installers/.Uninstall*',
'/Library/Application Support/Adobe/CEP/extensions/CC_*',
'/Library/Application Support/Adobe/CEP/extensions/com.adobe.ccx.*',
'/Library/Application Support/Adobe/Adobe Desktop Common',
'/Library/Application Support/Adobe/AdobeApplicationManager',
'/Library/Application Support/Adobe/AdobeGC*',
'/Library/Application Support/Adobe/*[Ii]nstall*',
'/Library/Application Support/Adobe/ADCRefs',
'/Library/Application Support/Adobe/caps',
'/Library/Application Support/Adobe/OOBE',
'/Library/Application Support/Adobe/PCF',
'/Library/Application Support/Adobe/SL*',
'/Library/Application Support/Adobe/Vulcan',
'/Library/Application Support/regid.*.com.adobe',
'~/Library/Application Support/Adobe/AAMUpdater',
'~/Library/Application Support/Adobe/ExtensibilityLibrary',
'~/Library/Application Support/Adobe/FloodGate',
'~/Library/Application Support/Adobe/.adobelicnotification',
'~/Library/Application Scripts/com.adobe.accmac.ACCFinderSync',
'~/Library/*/Adobe/CoreSync',
'/Library/*/com.adobe.*.plist',
'~/Library/*/com.adobe.*.plist',
'~/Library/Preferences/Adobe/.[A-Z0-9]???????????',
'/Library/PrivilegedHelperTools/com.adobe.acc.installer*',
'~/Library/Group Containers/Adobe-Hub-App',
'~/Library/*Containers/com.adobe.accmac.*',
'/Library/Internet Plug-Ins/AdobeAAMDetect.plugin',
'~/Creative Cloud Files/Icon?',
'/Users/Shared/Adobe/Installer',
'/Users/Shared/Adobe/OOBE',
],
rmdir: [
"#{appdir}/Adobe Creative Cloud",
'/Applications/Utilities/Adobe Installers',
'/Library/Application Support/Adobe{/CEP{/extensions,},}',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think some of these are a bit hard to parse, but fine, it’s Adobe, that you went through all this trouble is already great. Thank you. Let’s get this merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think some of these are a bit hard to parse

@vitorgalvao Yeah brace expansion can be tricky… this line is an example of why I opened #67806.

'/Library/*/Adobe',
'~/Library/*/Adobe',
'~/Creative Cloud Files',
'/Users/Shared/Adobe',
]

zap trash: [
'/Library/Application Support/Adobe/Extension Manager CC',
'~/Library/Application Support/Adobe/Extension Manager CC',
'~/Library/Application Support/Adobe/OOBE',
'/Library/Application Support/Adobe/Creative Cloud Libraries',
'/Library/Application Support/Adobe/Adobe PCD',
'/Library/Logs/CreativeCloud',
'~/Library/Logs/CreativeCloud',
'~/Library/Logs/ACC*.log',
'~/Library/Logs/PDApp*.log',
'~/Library/Logs/AdobeDownload.log',
'~/Library/Logs/AdobeIPCBroker*.log',
'~/Library/Logs/CoreSyncInstall.log',
'~/Creative Cloud Files',
],
rmdir: [
'/Library/Application Support/Adobe',
'~/Library/Application Support/Adobe',
'/Library/Logs/Adobe',
'~/Library/Logs/Adobe',
]
end