Re: installation with system restart in 10.4, but not in 10.5
Re: installation with system restart in 10.4, but not in 10.5
- Subject: Re: installation with system restart in 10.4, but not in 10.5
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 31 Jul 2008 00:46:28 +0200
On Jul 30, 2008, at 8:48 AM, Guoliang Li wrote:
hi, my package need to be installed with system restart in 10.4,
but not in 10.5, can someone give me a solution for this kind of
issue? Thanks.
Best wishes. AndrewLi
I have a stupid solution for this one if you can use a metapackage
instead of just a package.
Create a metapackage with 2 packages:
- Package A: your package that does not require restart.
- Package B: another package that requires restart and installs nothing.
In Package B, use an InstallationCheck script that will return 64 if
the OS is Mac OS X 10.5 or later, 0 otherwise. It might be useful to
also add a postflight script to delete this package receipt after
installation (or remove it from the sqlite3 receipts data base on
Leopard using the tool and option mentioned in a recent post (this
will prevent this package from being discarded because it's already
installed ).
Depending on whether you use a distribution script or a good old
metapackage, you might be able to hide the fact that it's a
metapackage to the user or you can set Package B to be required.
My $0.02
_______________________________________________
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