Requirement Check For Initial State
Requirement Check For Initial State
- Subject: Requirement Check For Initial State
- From: Adam Halls <email@hidden>
- Date: Fri, 14 Mar 2008 17:23:26 -0600
Hi,
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.
1. I have two components that I need to install:
Database Engine
My Application
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:
----------------------------
#!/bin/sh
if [ database_needs_to_be_installed ]
then
exit 1
else
exit 0
fi
----------------------------
So I select the Database Engine component and click the "Requirements"
tab and add a new requirement:
if: Result of Script
file path: path_to_script
Selected Yes
Enabled No
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?
Thanks in advance.
-Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden