Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a new Installer using PackageMaker. I need to run a bash script after the installation is complete.

In the "Contents" column I have a folder, which is the folder I want to be installed on the target machine. Within the folder, there's a bash file I need to execute.

If I click on the distribution properties and go to actions, I can "open" a file as a "postinstall action", but it won't execute the script.

If I click on the Content::folder and go to "scripts", pick the directory containing the script and put the script name as "postinstall", I get a "could not copy scripts" error.

What am I doing wrong?

share|improve this question
Is your postfight script installed as a folder in a package? A common mistake is to forget to store the script since the linking just is a pointer so run something already in the package. It's hard for me to tell from the wording if this might be the case. – bmike Jul 1 '11 at 15:53
My minimum target is OsX 10.5. There's no "postfight" script, as far as I can tell. – Roberto Aloi Jul 4 '11 at 10:35
I have just added a folder to the "Contents". Within that folder, a "configure" script is contained, which I need to execute after installation. – Roberto Aloi Jul 7 '11 at 7:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.