• 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: Leopard PackageMaker and postinstall script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard PackageMaker and postinstall script


  • Subject: Re: Leopard PackageMaker and postinstall script
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 1 Jul 2008 23:23:50 +0200


On Jul 1, 2008, at 6:52 PM, Scott Amory wrote:


On Jun 30, 2008, at 8:17 PM, bobkells wrote:

Having trouble getting a script named postinstall to run
from an installation created by Leopard PackageMaker, using
backwards compatible options with a Tiger *.pmproj file.

The Leopard Installer does not want to run postinstall.

The only way it will run the script is to rename it to postflight,
and create via the Tiger PackageMaker.  The Leopard Installer
then runs the postflight script.

Does Leopard Installer have trouble running a postinstall script?
Thanks...bob

Ok, so it sounds like you are making a Tiger style (bundled) installer. First can you confirm that the postinstall script that you have created is inside the packages Resources folder after you build the package with PackageMaker? If the script is there and you do not see the script run during install make sure that the system you are installing to hasn't already had the package installed on it (check for a receipt).


A piece of knowledge that people seem to miss with these styles of installers is when scripts get run. A postflight script will always run. A postinstall script will only run the first time a package is installed. A postupgrade script will only run when the package is being installed for a second (or later) time. Chances are if you delete your receipt you'll see your postinstall script run.

It might be necessary to detail why this behavior happens:

- with Tiger compatible packages: a postinstall script was run only if the package was installed for the first time.

- with Leopard-only compatible packages: the postinstall script is run whenever you install a package. The postinstall script is now the postflight script.

--
Stephane

N.B: If this mail does not make it to the mailing-list, I will start believing the mailing-lists at Apple are discriminating the Orange mail servers.



_______________________________________________
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: 
 >Re: Leopard PackageMaker and postinstall script (From: Scott Amory <email@hidden>)

  • Prev by Date: Re: how a single product will install to different locations
  • Next by Date: Re: silent sub-launch of dependent package during install?
  • Previous by thread: Re: Leopard PackageMaker and postinstall script
  • Next by thread: Re: silent sub-launch of dependent package during install?
  • Index(es):
    • Date
    • Thread