Help with Installation-check
Help with Installation-check
- Subject: Help with Installation-check
- From: "Michele Corum -X (mcorum - aap3 at Cisco)" <email@hidden>
- Date: Thu, 12 Jul 2012 23:54:28 +0000
- Thread-topic: 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
email@hidden
_______________________________________________
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