diff --git a/Casks/parallels10.rb b/Casks/parallels10.rb index ec92a48ca..24f1b588f 100644 --- a/Casks/parallels10.rb +++ b/Casks/parallels10.rb @@ -11,7 +11,7 @@ cask 'parallels10' do postflight do # Set the file to visible, since it was hidden in the dmg - system '/usr/bin/SetFile', '-a', 'v', staged_path.join('Parallels Desktop.app') + system '/usr/bin/SetFile', '-a', 'v', "#{appdir}/Parallels Desktop.app" end uninstall delete: [ diff --git a/Casks/vmware-fusion6.rb b/Casks/vmware-fusion6.rb index 9ed3997fd..dbda1a4fe 100644 --- a/Casks/vmware-fusion6.rb +++ b/Casks/vmware-fusion6.rb @@ -12,6 +12,6 @@ cask 'vmware-fusion6' do uninstall_preflight do system '/usr/bin/sudo', '-E', '--', - '/usr/sbin/chown', '-R', '--', "#{Etc.getpwuid(Process.euid).name}:staff", "#{staged_path}/VMware Fusion.app" + '/usr/sbin/chown', '-R', '--', "#{Etc.getpwuid(Process.euid).name}:staff", "#{appdir}/VMware Fusion.app" end end diff --git a/Casks/vmware-fusion7.rb b/Casks/vmware-fusion7.rb index 8ba28823f..4104ed45a 100644 --- a/Casks/vmware-fusion7.rb +++ b/Casks/vmware-fusion7.rb @@ -15,7 +15,7 @@ cask 'vmware-fusion7' do binary "#{appdir}/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool" uninstall_preflight do - set_ownership "#{staged_path}/VMware Fusion.app" + set_ownership "#{appdir}/VMware Fusion.app" end zap delete: [