• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Package maker won't run script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package maker won't run script


  • Subject: Re: Package maker won't run script
  • From: Christopher Ryan <email@hidden>
  • Date: Wed, 2 Nov 2005 18:57:55 -0800

Theodore,

One of the gotchas with these scripts is that there is a different script for upgrades then there is for installs. What this means is that if you try the package once, then the next time you install it, it will be an upgrade and the preupgrade script will be run instead.

You have two options.

1) create a symlink ln -s ./preinstall ./preupgrade

2) Use preflight script

A preflight script runs for install and upgrade and runs before any packages are installed (if you have 2 packages, the preflight for the second package runs before the first package installs).

Chris
I've tried to get package maker to run a script.

I set the resources folder to be a folder I've named "Resources". In that folder is a single script named "preinstall". It has it's executable bit set. The preinstall script simply creates a file at the root directory, so that I can verify that it really did execute. It's a dummy testing script.

If I run my preinstall script from the terminal, it works.

Inside my built package, I see a folder named "Resources". Within this folder is a script named "preinstall". It's directly within "Resources", not within any sub-dir.

When I run my package, guess what happens. Well, everything is installed but the script is not run!

Why???

If I go to the terminal and try running the preinstall script, it runs just fine.

It's like the installer is ignoring the script.

I'm running OSX 10.4, PackageMaker 2.0.

Unless I can run scripts from PackageMaker, my installer won't be any good, so I'd have to find some other way to install this app, because I need to run scripts.


-- http://elfdata.com/plugin/

What does our work achieve, if it's not making the world a happier place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our lives?



_______________________________________________ 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

_______________________________________________ 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
References: 
 >Package maker won't run script (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Package install problems
  • Next by Date: Re: Package install problems
  • Previous by thread: Package maker won't run script
  • Next by thread: Package install problems
  • Index(es):
    • Date
    • Thread