Difference between postflight and postinstall

jszaszvari
New Contributor III
New Contributor III

Does anyone know the difference between the two?

I'm struggling to work out if they actually run the script at a different time?

John

--

John Szaszvari
Network Manager | Monte Sant' Angelo Mercy College

3 REPLIES 3

rockpapergoat
Contributor III

check this for some details. the order is listed in apple's docs, as well.

http://macadmins.psu.edu/2011presentations/PSUMAC208-Intro_to_Packaging-Rusty_Myers.pdf

bkvines
New Contributor III

John,

My understanding is this: - Postflight: Runs at the end of the installation process, whether the Installer thought it was performing an upgrade or a new installation. - Postinstall: Runs at the en of the installation process, but only if it the Installer thought it was performing a new installation.

I use the same distinction for "preflight" versus "preinstall".

--
Bryan Vines
Systems Administrator
Watts | Guerra | Craft LLP

Chris_Hafner
Valued Contributor II

Also, preflight/postflight scripts cannot be used with a flat .pkg