Re: need help on my first install script
Re: need help on my first install script
- Subject: Re: need help on my first install script
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 4 May 2007 20:58:28 +0200
On vendredi, mai 4, 2007, at 05:36 PM, Paul Miller wrote:
Paul Miller wrote:
I have a command-line program that needs admin privileges in my
installer package's Resources folder. I want to run this program
before an upgrade.
This particular package is a sub-package of a metapackage.
The program ("foo") is in the sub-package's Resources folder.
My preupgrade script (also in Resources) basically just does this:
[preflight]
#!/bin/sh
$1/Contents/Resources/foo
But when I run my installer, it exits with an error but doesn't tell
me what went wrong.
What am I missing?
It seems I might have simply missed an "exit 0" at the end of the
script.
Can I assume foo is running with admin privileges since the package is
tagged with "Require Admin"?
If things have not changed, the script is run by root.
InstallationCheck and VolumeCheck are run using the current user
account.
_______________________________________________
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