Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Update adobe-cs6-production-premium.rb #3182

Merged
merged 1 commit into from
Jan 24, 2017
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
Update adobe-cs6-production-premium.rb
Update adobe-cs6-production-premium to use `system_command`.
  • Loading branch information
miccal authored Jan 24, 2017
commit eca928a96a139701dbf1b7ec440b754c2ce01d7c
18 changes: 14 additions & 4 deletions Casks/adobe-cs6-production-premium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,25 @@
'en_US'
end

system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Production Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Production Premium/deploy/install-#{language}.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Adobe CS6 Production Premium/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Production Premium/deploy/install-#{language}.xml"
],
sudo: true

FileUtils.cp "#{staged_path}/Adobe CS6 Production Premium/deploy/uninstall-#{language}.xml", "#{staged_path}/uninstall.xml"
end

uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Production Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Adobe CS6 Production Premium/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
],
sudo: true
end

caveats 'Installation or Uninstallation may fail with Exit Code 19 (Conflicting Processes running) if Browsers, Safari Notification Service or SIMBL Services (e.g. Flashlight) are running or Adobe Creative Cloud or any other Adobe Products are already installed. See Logs in /Library/Logs/Adobe/Installers if Installation or Uninstallation fails, to identifify the conflicting processes.'
Expand Down