Skip to main content
Question

Difference between postflight and postinstall

  • August 3, 2011
  • 3 replies
  • 34 views

Forum|alt.badge.img+7

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

Forum|alt.badge.img+13

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


Forum|alt.badge.img+4
  • Contributor
  • August 3, 2011

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
Forum|alt.badge.img+27
  • Jamf Heroes
  • July 21, 2016

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