Help with Installation-check
Help! I'm running in circles here and could use some input. I am needing to create an installation-check in a flat package. I've created my script (see below) and it runs correctly. However once I place it inside the Resources folder in the package and add it the coding to Distribution, it fails. What am I doing wrong? My script (installation-check.sh) #!/bin/sh if [ -e "/Library/Preferences/com.foobar.plist" ]; then $(exit 1) else $(exit 0) fi My coding inside DistributionÅ . <installation-check script="pm_install_check();"/> <script>function pm_install_check() { if(!(system.run('./Resources/installation-check.sh') == true)) { my.result.title = 'Error!'; my.result.message = 'File already installed.'; my.result.type = 'Fatal'; return false; } return true; } </script> Michele Corum Macintosh Engineer/Developer aap3 at Cisco Systems, Inc. 400 East Tasman Drive, SJ12-3 San Jose, California 95134 Desk 408.853.3430 Cell 925.586.6173 mcorum@cisco.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michele Corum -X (mcorum - aap3 at Cisco)