site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi, 1. I have two components that I need to install: Database Engine My Application ---------------------------- #!/bin/sh if [ database_needs_to_be_installed ] then exit 1 else exit 0 fi ---------------------------- if: Result of Script file path: path_to_script Selected Yes Enabled No Thanks in advance. -Adam _______________________________________________ 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: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I'm using PackageMaker 3.0.1. I've created a new package that will only run on Mac OS X 10.5+. I've read the PackageMaker documentation several times and have scoured the internet to find answers to the following questions, but I've had no luck. For the Database Engine I have the Initial State set as "Selected" and "Hidden" are disabled and "Enabled" is enabled. However, I would like to add a requirement that would set "Selected" to Yes and "Enabled" to No if the Database Engine needs to be installed. I have written a shell script that checks to see if the Database Engine needs to be installed: So I select the Database Engine component and click the "Requirements" tab and add a new requirement: But no matter what I set the exit values to in the shell script the package always thinks the script is failing. This means that Selected is always set to Yes and Enabled is always set to No. What is the proper way to have a script exit with either true or false depending on the if statement? Should I be using a shell script or another script technology such as Perl? 2. Somewhat related on one above. When creating a requirement I noticed one of the options is "Result of Javascript". How exactly does this option work? Where do you write the Javascript code? Do you write your functions in another file and add it to the package somehow? This email sent to site_archiver@lists.apple.com