|Oct 26, 2010, 07:15 PM||#1|
PackageMaker - postinstall script is not running
Using PackageMaker v3.0.1 with Mac OS X v10.5.8, I am trying to create an installer package that copies two file to a new folder and then runs a shell script. The folder is created, the files copied, but the postinstall script does not run. How do I know you ask. I replaced the contents of the postinstall script with the lines below and the text file was not created. Looking in the installer's log I find nothing to indicate an error or even an attempt to execute the postinstall script.
echo "we were here" >> /test.txt
The script's execute bit is set and I believe the permissions are set correctly. If I browse through the contents of the .mpkg package I find, buried deep within, the postinstall script. BTW, if I CD to the folder in which I find the script and type ./postinstall the text file is created successfully.
I have run out of things to try and appreciate any assistance you can provide. I've attached to this post the installer's log file for those interested.
|Oct 26, 2010, 09:12 PM||#2|
Try something that doesn't require file-system permissions, like:
say "Go away before I taunt you some more."
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Automator script not running at every login?||Risco||OS X Mavericks (10.9)||0||Apr 21, 2014 03:03 PM|
|Adding Command (Script) to Packagemaker Installer?||Goftrey||Mac Programming||4||Aug 23, 2013 09:25 PM|
|Shell Script Running and Password Problems||skinicod||Mac Programming||3||Jul 7, 2013 07:25 PM|
|Need help running this .sh script?||uly609||iMac||3||Feb 28, 2013 12:19 PM|
|Running a PHP Script||Ides||Web Design and Development||5||Sep 17, 2012 06:08 PM|
All times are GMT -5. The time now is 09:31 AM.