Re: modify IFPkgFlagRestartAction behaviour during installation process
Re: modify IFPkgFlagRestartAction behaviour during installation process
- Subject: Re: modify IFPkgFlagRestartAction behaviour during installation process
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 29 Jan 2007 21:55:29 +0100
On lundi, janvier 29, 2007, at 12:03 PM, Andreas Niemeyer wrote:
Hi,
I would like to modify the `IFPkgFlagRestartAction' behaviour on
demand during the installation process - but failed. The changing of
the value from `NoRestart' to `RequiredRestart' didn't work:
I tried to do this modification of this `IFPkgFlagRestartAction' key
value, nested in the Info.plist, within an
- InstallationCheck script,
- MetaPackage preinstall script and
- Singlepacke preinstall script; basically thought the package
declaration is read in somewhere after such scripts were invoked.
Ok, the installer seems to handle the package declarations statically,
no way to do it.
Does there an alternative exists to do such things?
Stupid ideas of the day:
Workaround 1:
2 packages inside a metapackage:
- One with NoRestart adn the other with RequiredRestart.
- InstallationCheck script in each script determines whether they
should be enabled or not.
- It might be possible to just have one real package. The other one
would be made of links to the real package for the .bom, .pax[.gz] (and
probably Version, Size, etc...).
I tested it and it works on 10.4 (I haven't tested the sym link thing
but there's no reason it would not work).
Workaround 2:
1 package installing nothing but checking for the need to restart or
not.
The real package is in the Resources and is modified by the postflight
script of the main package.
The main package installs the real package using installer from the
postflight script.
_______________________________________________
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