Re: Package selection in postinstall
On Mon, Nov 12, 2012 at 2:19 PM, Andrew Keller <andrew@kellerfarm.com> 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre