Re: How to test to see if a program is running?
Re: How to test to see if a program is running?
- Subject: Re: How to test to see if a program is running?
- From: Iceberg-Dev <email@hidden>
- Date: Fri, 5 Mar 2010 23:26:14 +0100
On Mar 5, 2010, at 6:32 PM, Allan Marcus wrote:
Please let me clarify.
I see that I can have a script run for system requirements. I
cannot find any documentation on how to use this feature. I have a
test.sh script that I put into the script path field.
questions:
1) what should the script return to indicate pass or fail?
exit 0 for pass
exit 1 for fail
?
Whatever you want. The exit value is the value returned by system.run.
2) the script doesn't seem to get included in the package. In the
installer log when I run the installer it appears the install is
trying to run the script from the original location.
Yes, this is a known bug. I reported on my side probably more than a
year ago.
The only solution I know so far to work around this issue is to build
a bundle distribution (this means choosing 10.4 as the target in
PackageMaker). Then you need to edit the distribution script and copy
the script in the Resources folder.
_______________________________________________
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