Re: Sequence of install scripts
Re: Sequence of install scripts
- Subject: Re: Sequence of install scripts
- From: Nick Peelman <email@hidden>
- Date: Mon, 8 Mar 2010 16:09:21 -0500
The easiest way (if not the most proper way) would be to set a flag
file (`touch /path/to/file`) in your postinstall of component_1, and
look for it in component_2's preinstall (`if (-e /path/to/file) { }`).
Or check whatever value/service/file/etc you're doing in
component_1's postinstall, instead of creating a flag file.
-nick
--
Nick Peelman
email@hidden
On Mon, Mar 8, 2010 at 10:56 AM, sakshi <email@hidden> wrote:
> Hi,
> I am creating a distribution package that needs to be installed on both
> Leopard and Snow Leopard. Is there a difference in the sequence in which the
> preinstall and postinstall scripts get invoked on these platforms?
> My package contains two component packages and I would like the second
> component to not get installed if the postinstall of the first one fails.
> There seems to be a difference in behavior on Leopard vs. Snow Leopard. On
> Leopard, if postinstall of component_1 fails (script returns -1), then
> component_2 does not get installed. However on 10.6, component_2 gets
> installed even if postinstall of component_1 fails.
> Thanks,
> Sakshi
> _______________________________________________
> 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
>
_______________________________________________
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