On Tue, Nov 13, 2012 at 8:42 PM, Philip Petev <madmax2000@gmail.com> wrote:
Hi there. I started to make OS X packages recently and I can say I'm still learning. Right now, I'm using Packages, which is IMO pretty good program, especially for newbies like me. Now on the topic - I made one flat metapackage with some packages inside. I know that every package has its preinstall and postinstall script, but I want to add two scripts, one, which should be executed before all preinstall scripts and one, which should be executed after all postinstall scripts and I don't know how to do this in Packages. Can you help me? Thank you in advance!
You can add packages that have no files in their payload and that will only run a pre-installation or post-installation script. You just need to make sure to put the one that runs the script before all installation at the top of the list in the Presentation > Installation Type step and the one that runs the script after all other ones at the end of the same list. Then you can set them to be required and invisible. Side note: from what I've experienced, the order in which packages will be installed is guaranteed but I've been told this may not be so when you have a remote package involved (I haven't checked that yet). _______________________________________________ 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