#!/bin/sh if test -d /Users/Shared/AdbeInst; then cd /Users/Shared/AdbeInst find * -type d -exec mkdir '/Applications/{}' \; if test $? -ne 0; then ret=1; fi find * -type f -exec mv '{}' '/Applications/{}' \; if test $? -ne 0; then ret=1; fi cp -PRf * /Applications/ if test $? -ne 0; then ret=1; fi cd .. rm -rf AdbeInst if test $? -ne 0; then ret=1; fi else ret=0 fi if test -f /Users/.$USER/$USER.sparsebundle/Info.plist; then if test -d /System/Library/CoreServices/Installer.app/Contents/PlugIns/Summary.bundle; then osascript <<-EOF tell application "Installer" set mymsg to (localized string "InstallSucceededTitle" in bundle POSIX file "/System/Library/CoreServices/Installer.app/Contents/PlugIns/Summary.bundle") activate display dialog mymsg buttons {"OK"} default button 1 with icon 1 end tell EOF else osascript <<-EOF tell application "Installer" set mymsg to (localized string "SuccessMessage" in bundle POSIX file "/Applications/Utilities/Installer.app/Contents/PlugIns/Summary.bundle") activate display dialog mymsg buttons {"OK"} default button 1 with icon 1 end tell EOF fi killall Installer fi exit $ret