• 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: Package selection in postinstall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package selection in postinstall


  • Subject: Re: Package selection in postinstall
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 12 Nov 2012 16:54:14 +0100

On Mon, Nov 12, 2012 at 2:19 PM, Andrew Keller <email@hidden> wrote:
> Hello all,
>
> Does the postinstall script have access to a list of the packages that the user selected for installation?

AFAIK, it does not.

It is possible to get that list through an Installer Plugin via the
InstallerState class.

Assuming a finalize invisible package would be added to the
distribution, I don't remember reading there's an official warranty
that the receipts data base is up to date once the other packages have
been installed. Also, the fact that a package is listed in the
receipts data base is not sufficient in itself to state the choice for
this package was selected (it could come from another installation).

What could be possible to do (and is tedious) is to have a post
installation script for each package that writes to a specific
temporary location a file to log it has been installed and then check
these files from the finalize package scripts.

If one doesn't want to modify the existing packages for this, it's
still possible (but even more tedious) to achieve by "merging" each
existing package with a package including only the relevant post
installation 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

References: 
 >Package selection in postinstall (From: Andrew Keller <email@hidden>)

  • Prev by Date: Package selection in postinstall
  • Next by Date: secuely distributing a bundle package.
  • Previous by thread: Package selection in postinstall
  • Next by thread: secuely distributing a bundle package.
  • Index(es):
    • Date
    • Thread