Browse Source

Update adobe-cs6-design-web-premium.rb (#3180)

Update adobe-cs6-design-web-premium to use `system_command`.
master
Miccal Matthews 8 years ago
committed by GitHub
parent
commit
d354ea1cc2
  1. 18
      Casks/adobe-cs6-design-web-premium.rb

18
Casks/adobe-cs6-design-web-premium.rb

@ -31,15 +31,25 @@ cask 'adobe-cs6-design-web-premium' do
'en_US'
end
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design and Web Premium/deploy/install-#{language}.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design and Web Premium/deploy/install-#{language}.xml"
],
sudo: true
FileUtils.cp "#{staged_path}/Adobe CS6 Design and Web 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 Design and Web 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 Design and Web 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.'

Loading…
Cancel
Save