Re: Packages preflight script failure
Re: Packages preflight script failure
- Subject: Re: Packages preflight script failure
- From: Stephane Sudre <email@hidden>
- Date: Sun, 14 Jun 2015 20:08:41 +0200
On Sat, Jun 13, 2015 at 10:54 PM, Antony Nispel <email@hidden> wrote:
> I have been unsuccessful in getting Packages V1.1.2 in either bundle or flat
> mode to fire any sort of script—even simple test script that simply beeps:
>
>
> #!/bin/sh
> osa"beep 1"
> exit 0
>
>
> The package and script have been code-signed and verified, and the script
> permissions are set to what I take to be the correct permissions using chmod
> u+rwx.
Note that the source scripts just need to have the read permission.
The permissions of the post-installation and pre-installation scripts
within the package are automatically set during the build phase of the
package.
> What is frustrating is that I have an older Package installation file that executes its script. What can I be overlooking?
When the scripts are run during installation, there are corresponding
log entries in install.log (or in the Log Window of the Installer.app
application (Window > Installer Log).
In the case of your script, here is what I get on a 10.10.3 system:
Jun 14 20:01:27 MacPro.local installd[459]: PackageKit: Executing
script "./preinstall" in
/private/tmp/PKInstallSandbox.4Ed5nc/Scripts/com.mygreatcompany.pkg.TestScript.ijFITN
Jun 14 20:01:27 MacPro.local installd[459]: ./preinstall:
/tmp/PKInstallSandbox.4Ed5nc/Scripts/com.mygreatcompany.pkg.TestScript.ijFITN/preinstall:
line 3: osa: command not found
What you're looking for is probably:
--------8<--------8<--------8<--------8<--------
#!/bin/sh
/usr/bin/osascript -e "beep 1"
exit 0
--------8<--------8<--------8<--------8<--------
_______________________________________________
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