• 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: How to do something (like launch an app) at the VERY end of an install?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do something (like launch an app) at the VERY end of an install?


  • Subject: Re: How to do something (like launch an app) at the VERY end of an install?
  • From: Bill Coderre <email@hidden>
  • Date: Thu, 8 Jun 2006 14:21:36 -0400


On Jun 7, 2006, at 6:50 PM, Steve Johnson wrote:

If I understand what you’re saying, then the postflight script runs asynchronously.  Is that right?  So even though I’m holding up the completion of the postflight script, the Installer will proceed along, displaying the final dialog and quitting once the user dismisses that dialog?  If this is so, then I get you 100%

We are already launching our app (just doing so a wee bit earlier than we’d like), so we’ve already addressed the permission issues.  And we don’t require a restart, so that isn’t a problem.

Er, I misspoke. The installer blocks synchronously until postflight returns. So you should have a postflight launch a process that waits for the installer process to disappear, then launches your app. The postflight script should return as soon as it is finished doing whatever and launching the process.

There are some Apple-written scripts that do this already, such as firmware updates. The receipts in /Library/Receipts/ are almost exactly installer packages without the Archive.pax.gz payload, so in a /Library/Receipts/<RandomInstaller>.pkg/Content/Resources/ are all the scripts that are run.

Feel free to look at Apple-written scripts for inspiration.
 _______________________________________________
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: How to do something (like launch an app) at the VERY end of an install? (From: "Steve Johnson" <email@hidden>)

  • Prev by Date: Re: Uninstallation of plug-ins
  • Next by Date: Unable to Upgrade OS X {via MacOSXUpdate10.4.3Patch.pkg}
  • Previous by thread: RE: How to do something (like launch an app) at the VERY end of an install?
  • Next by thread: Unable to Upgrade OS X {via MacOSXUpdate10.4.3Patch.pkg}
  • Index(es):
    • Date
    • Thread