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

Re: Mandate restart from postinstall script?


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

On Nov 10, 2012, at 9:24 AM, Stephane Sudre wrote:

> On Sat, Nov 10, 2012 at 2:43 PM, Andrew Keller <email@hidden> wrote:
>> 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?
>
> AFAIK, it's too late for a package to have a change of mind regarding
> the post-installation behavior once the installation has begun.

Okay - it's probably better for the user, anyways.

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

References: 
 >Mandate restart from postinstall script? (From: Andrew Keller <email@hidden>)
 >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: Package selection in postinstall
  • Previous by thread: Re: Mandate restart from postinstall script?
  • Next by thread: Package selection in postinstall
  • Index(es):
    • Date
    • Thread