Repackaging iLife 11 for DeployStudio
iLife 11 can be difficult to repackage for use with DeployStudio. There is a great article available here on the OS X Deployment and Management Wiki for how to do this, but you can also use the methodology referenced in this post to repackage iLife 11 for installation by DeployStudio. See below the jump for the procedure.
Update – 3-24-2012: If you are reading this after Friday, March 23 2012, make sure to remove iLife 11’s package signing using Greg Neagle’s flatpkgfixer script prior to using the repackaging procedure below.
You’ll need to have the iLife 11 Install DVD or a disk image of that DVD.
Set up a new Iceberg project. Since we’ll need to run this installer with root privileges, I recommend setting the project type to Darwin: Package. That will open the project with the installation privileges automatically set to root. In this case, I’m naming the project iLife 11 Installer.
Open your iLife 11 install disk, then control-click on Install iLife and select Show Original.
A new Packages window will open.
Select all of the packages in the Packages window and drag them all into the Additional Resources section of your Iceberg project. (The order doesn’t matter.)
The last piece is telling the installers to run. For this, you’ll need a postflight script. Here’s the one I’m using:
sudo installer -dumplog -verbose -pkg "$1/Contents/Resources/iLife.pkg" -target /
Once you’ve got the postflight script built, run the following command to make the script executable:
sudo chmod a+x /path/to/postflight
Last step, go ahead and build the package.
Once the package has been built, test it by taking it to a test machine that doesn’t have iLife 11 and install it. You’ll need to run Software Update a couple of times to get all of the iLife applications fully updated, but then it should be ready to go.
Note: When deploying an iLife installer package built using this method with DeployStudio, make sure to set it as a postponed install.