Re: Mandate restart from postinstall script?
Re: Mandate restart from postinstall script?
- Subject: Re: Mandate restart from postinstall script?
- From: Stephane Sudre <email@hidden>
- Date: Sat, 10 Nov 2012 15:24:45 +0100
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.
_______________________________________________
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