Making an automated OS X installer

May 28, 2013

Since the release of 10.7 Lion it has been fairly easy to create an upgrade package which you can deploy with DeployStudio. Making it possible to upgrade multiple machines at once using the DeployStudio Runtime.

This is a step by step guide how to make such an installer and how to deploy it by using DeployStudio.

Creating the Installer package

  1. Download the latest 10.8 installer from the Mac App Store
  2. Download the latest version of createOSXinstallPkg from the Munki website.
  3. Run the following command in the Terminal to create a basic installation package.
sudo ./createOSXinstallPkg --source /path/to/Install\ OS\ X\ Mountain\

Which in my case will be:

sudo /Users/thomasvente/Desktop/ML1083-installer/createOSXinstallPkg_20130315/createOSXinstallPkg --source /Applications/Install\ OS\ X\ Mountain\

As a result you’ll see some progress in the Terminal starting with the validation of the downloaded app and finally copying the InstallESD into the package.

Create Installer Package

Note: You must run the command as root (sudo) otherwise it won’t have the expected results.

  1. Copy your created Package to the DeployStudio Repository and drop it in the Packages folder.

  2. Start the DeployStudio Admin and check if the package shows up in the packages window. If the package shows up you can start setting up the workflow.

Setting up the workflow

  1. Set up a workflow for the previously created installer package. In my case I’m calling it Upgrade to 10.8.3.

  2. Select the single installer package and set it as a Postponed Installation.

  3. Boot your 10.6.8 or 10.7.x machine into Netboot, select the Workflow and let the magic begin.