Re: Install requirement script returning true
Re: Install requirement script returning true
- Subject: Re: Install requirement script returning true
- From: Iceberg-Dev <email@hidden>
- Date: Tue, 7 Oct 2008 23:07:17 +0200
On Oct 7, 2008, at 11:46 AM, Andy Bell wrote:
Hi,
I am quite new to PackageMaker(3.0.2) and have run into a problem
with a shell script always returning true.
The script is simple, and simply detects a running application:
#!/bin/sh
if ps auxc | grep -v grep | grep <proc name>; then
exit 1
else
exit 0
fi
I have in raw editing mode:
<installation-check script="pm_install_check();"/>
<script>function pm_install_check() {
if(!(system.run('/Users/andy/devel/qt/putplace/running.sh') ==
true)) {
my.result.title = 'Update';
my.result.message = 'You will need to close PutPlace before
updating';
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
The question how can get my shell script to return 'false' when the
application is not running?
1. Please note that the JavaScript code is incorrect: your script is
referenced with an absolute path that won't work within the package.
This is a bug which has been reported to Apple.
2. Check that the allow-external-scripts option is set to 'yes' (or
'true').
3. There's a new version of PackageMaker with the latest Dev Tools
(3.0.3).
_______________________________________________
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