Re: Getting the list of arguments passed with installer command in preinstall or postinstall
Re: Getting the list of arguments passed with installer command in preinstall or postinstall
- Subject: Re: Getting the list of arguments passed with installer command in preinstall or postinstall
- From: Stephane Sudre <email@hidden>
- Date: Wed, 2 Feb 2011 11:05:35 +0100
On Wed, Feb 2, 2011 at 9:52 AM, kushal ghosh <email@hidden> wrote:
> Hi,
> Is there any way of finding out the list of arguments passed to the
> installer command in postinstall/preinstall? For example my intention is
> that by any way can we detect the filename which is given with
> -applyChoiceChangesXML while running the installer in CLI in the
> postinstall/preinstall scripts?
> installer -pkg abc.pkg -applyChoiceChangesXML choicesfile -target /
> Here inside abc.pkg which has its own postinstall and preinstall scripts can
> we get the "choicesfile" file name?
Assuming we are talking about a flat distribution for abc.pkg. abc.pkg
does not have a preinstall or postinstall script. It's actually an
invisible package of the distribution that contains these scripts.
I would say that if you need to perform actions based on a package
being installed or not, it's better to have your own invisible package
and its selected state dependent of the other package(s'|'s) selected
state(s).
My $0.014
_______________________________________________
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