Re: preflight script with productbuild
Thanks to both for your help. Eric Gorouben
Le 21 mars 2015 à 14:08, Stephane Sudre <dev.iceberg@gmail.com> a écrit :
Some additional notes just in case:
- preinstall script with the new flat format are the equivalent of preflight script: they are always run be it a clean install or an update).
- make sure the component pkg that only contains a preinstall script is listed before the product component in the choices list. That's what determines the order of installation (usually).
On Fri, Mar 20, 2015 at 9:53 PM, Greg Neagle <greg.neagle@disneyanimation.com> wrote:
Use pkgbuild to create a component pkg with your _preinstall_ script (pre_flight_ scripts are no longer supported).
Then use productbuild to build a distribution pkg containing your component pkg.
-Greg
On Mar 20, 2015, at 12:02 PM, Eric Gorouben <gorouben@gmail.com> wrote:
Hi there
I try to include a preflight script (a shell script that sudo removes obsolete files...) to my product archive. I build the archive using productbuild and a xml distribution definition file, and I can't find the correct way. Did anyone successfully achieve this?
Thanks in advance Eric Gorouben
_______________________________________________ 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/dev.iceberg%40gmail.co...
This email sent to dev.iceberg@gmail.com
-- Packaging Resources - http://s.sudre.free.fr/Packaging.html _______________________________________________ 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/gorouben%40gmail.com
This email sent to gorouben@gmail.com
_______________________________________________ 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)
-
Eric Gorouben