Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Oct 26, 2010, 06:15 PM   #1
macrumors newbie
Join Date: Oct 2010
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
exit 0

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.

Computer Guy
Attached Files
File Type: txt install.log.txt (8.1 KB, 85 views)
greg.schumacher is offline   0 Reply With Quote
Old Oct 26, 2010, 08:12 PM   #2
macrumors 603
Join Date: Aug 2009
Originally Posted by greg.schumacher View Post
echo "we were here" >> /test.txt
Without permission to write to the root dir, that command will silently fail without creating a file.

Try something that doesn't require file-system permissions, like:
say "Go away before I taunt you some more."
The script's execute bit is set and I believe the permissions are set correctly.
Exactly what are the permissions?
chown33 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Dock is not running atrate Mac Basics and Help 2 May 29, 2010 09:33 AM
CoD2 is not running smooth on my MacBook Pro Nodlle Mac and PC Games 5 Feb 16, 2009 06:39 PM
How to EJECT iPhone when iTunes is not running? Mac. iPhone 8 Jan 29, 2009 12:11 AM
postflight script will not run BruisedGhost Mac Programming 0 Oct 2, 2008 10:15 AM
Idvd is not running on my Macbook gregdrummeraz Mac Applications and Mac App Store 2 Jul 16, 2008 10:42 AM

All times are GMT -5. The time now is 08:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC