PakageMaker & External scripts
Hi - I am trying to launch an applescript at the end of a packagemaker installation. I have a postinstall shell script that uses "osascripts" to call to the applescript. Outside of the installer this works fine.
Once compiled, though, the script is never executed.
I know now that PackageMaker scripts must be shell or perl scripts. The documentation also says that external scripts can be called by the shell script, but I tried this and cannot get it to work.
All I want to do is have the installer run a simply applescript either before or after the installation completes.
I have read the documentation and know that:
1. Script should be perl or bash shell - I am using a shell script.
2. Resources directory should be created at the same hierarchical level as the installation directory to contain the scripts.
3. script names need to be preflight, postinstall, postupgrade, etc.
4. scripts need to have proper permissions so they can be executed.
Incidentally, my shell script works fine outside the installer, but the installer does not execute it for some reason.
Well, if anyone what reads this knows how to do this, I would really appreciate the answer!
Thanks!
Bill
|