Skip to content

Commit

Permalink
Update adobe-cs6-master-collection.rb (Homebrew#3181)
Browse files Browse the repository at this point in the history
* Update adobe-cs6-master-collection.rb

Update adobe-cs6-master-collection to use `system_command`.

* Update adobe-cs6-master-collection.rb
  • Loading branch information
miccal committed Jan 24, 2017
1 parent 3416a2b commit 49e5cb9
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Casks/adobe-cs6-master-collection.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 Master Collection/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/install-#{language}.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/install-#{language}.xml"
],
sudo: true

FileUtils.cp "#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml", "#{staged_path}/uninstall.xml"
end

uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.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

0 comments on commit 49e5cb9

Please sign in to comment.