• 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
Mandate restart from postinstall script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mandate restart from postinstall script?


  • Subject: Mandate restart from postinstall script?
  • From: Andrew Keller <email@hidden>
  • Date: Sat, 10 Nov 2012 08:43:36 -0500

Hello all,

In the postinstall script for one of my component packages, I put all of the required installation-related code at the top, and the code to try and bring up the app without a restart at the end.  All of the common scenarios where a restart is required are handled earlier using JavaScript, however there are still some edge cases that can cause the postinstall script to fail to bring up the app.

If the postinstall script succeeds with the installation, but fails to bring up the app, then the user could "fix" it by simply restarting.  Conceivably, the postinstall script could detect when there is an error.  Is there a way for the postinstall script to tell Installer to mandate a restart if it detects a problem bringing up the app?

Thanks,
Andrew Keller


 _______________________________________________
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

  • Follow-Ups:
    • Re: Mandate restart from postinstall script?
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Running processes as non-root after an install
  • Next by Date: Re: Running processes as non-root after an install
  • Previous by thread: Re: Running processes as non-root after an install
  • Next by thread: Re: Mandate restart from postinstall script?
  • Index(es):
    • Date
    • Thread