cask 'adobe-photoshop-cc-es' do version :latest sha256 :no_check url 'http://trials3.adobe.com/AdobeProducts/PHSP/16/osx10/Photoshop_16_LS20.dmg', user_agent: :fake, cookies: { 'MM_TRIALS' => '1234' } name 'Adobe Photoshop CC 2015' homepage 'https://www.adobe.com/products/photoshop.html' license :commercial conflicts_with cask: 'adobe-photoshop-cc' preflight do file = File.open "#{staged_path}/uninstall.xml", 'w' file.puts ' 0 {2614BC86-757D-4293-9E25-E4E16F370A9E} remove ' file.close system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/es_ES_Deployment.xml" end uninstall_preflight do system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml" end uninstall rmdir: '/Applications/Utilities/Adobe Installers' end