• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the list of arguments passed with installer command in preinstall or postinstall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting the list of arguments passed with installer command in preinstall or postinstall (From: kushal ghosh <email@hidden>)

  • Prev by Date: Getting the list of arguments passed with installer command in preinstall or postinstall
  • Next by Date: Re: Installer-dev Digest, Vol 78, Issue 1
  • Previous by thread: Getting the list of arguments passed with installer command in preinstall or postinstall
  • Next by thread: Re: Getting the list of arguments passed with installer command in preinstall or postinstall
  • Index(es):
    • Date
    • Thread