<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Creating Software Packages in OSX

Published on
10,224 Points
4,124 Views
1 Endorsement
Last Modified:
Approved
Package creation on OS X uses the PackageMaker utility installed as part of the XCode development suite ( on the OSX Client CD).  Packages can be installed as part of the machine build process, or later using Apple Remote Desktop. They are generally capable of silent installs, cause very little disruption to users and can be tested prior to installation in a lab situation.

Packages are created in one of two ways, either by using a ‘snapshot’ process, which monitors the installation process of an application and creates a package from the payload, or standard packages which contain program units from software already installed.

Payload Package

A standard package is created when a software application is portable, that being when it installs within the /Applications folder and can be moved between machines and still function – with no files stored outside of these folders. Applications which are portable traditionally offer a ‘drag and drop’ installation system, during which a window is displayed after the .dmg file is opened and the application is dragged to the /Applications folder. Example applications that are portable are Cyberduck & Office 2008.

To begin the package creation process start PackageMaker by typing the name into spotlight search.

package1.jpg

Once the application starts it will prompt for the Organisation name and a Minimum OS for the package. Accept the details as shown below.

package2.gif

The next stage is to enter general details for the package, namely a package name, and a description. Ensure the ‘system volume’ checkbox is selected to ensure the system drive is used for the package installation.

package3.gif

At this point you should install the package into the local applications folder using the suggested method. The exact installation instructions will depend on the application being installed, but in general it should be a case of dragging the executable into the applications folder.

package4.gif

Once installed left click the application and drag into the contents folder of PackageMaker as shown in the screenshot above.

package5.gif

Once pasted, the Contents folder will updated with the application to be installed, click the configuration tab to edit the detailed properties.

package6.gif

Ensure that the ‘Install’ and ‘Destination’ fields are complete as shown above, (n.b its intentional that the Destination field should contain /Applications)

package7.gif

Save the package by Clicking File -> Save as and provide a suitable name. Click Save as shown in the dialogue above to complete the process.

Click the Project menu and Select ‘Build’.

package8.gif

On the resulting dialogue enter a meaningful name for the package and click ‘Save’.

package9.gif

The build process will proceed through a number of stages and result in screens as shown below. The package will be saved into the area selected on the previous page and can be migrated as required to the a package deployment share.

package10.gif
package11.gif

Snapshot Package

A snapshot package is used when the application to be package comes in the form of an OSX installer – the application to be installed isn’t portable in that it potentially installs files in multiple locations within the OSX system – in addition the installer isn’t transparent and doesn’t provide indication of where the files are installed.

 package12.gif

Start PackageMaker by typing the name in the spotlight search field. Once started, accept the defaults for the Install properties dialog.

 package13.gif

Enter the details for the desired package, for the case of this example we will be installing the ‘I Can animate package’.

 package14.gif

Click ‘Project’ -> ‘Add Snapshot Package’.

 package15.gif

Prepare the installation program, ensuring that the window and is ready to install.

 package16.gif

When ready click the ‘Start’ Button on the dialog below.

 package17.gif

The ‘snapshot’ process will begin and PackageMaker will begin monitoring the system for file additions, modifications and removals.

 package19.gif

At this point begin the program installer by double clicking on the relevant program, in this case the ‘Install I Can Animate’ program.

 package20.gif
 package21.gif

When the installation has completed, click the ‘STOP’ button in package Maker to stop the monitoring phase – at which point Package Maker will pause while creating the package Manifest, a process that could take from a few seconds to several hours depending on the size and complexity of the package.

Once the manifest creation is complete list of the files and folders that have been modified during the installation will be displayed.

 package22.gif

For now click ‘Save’ to save the manifest but as you gain experience you should aim to remove any files & folders from the list which have no link to the package – this will ensure that erroneous items such as configuration changes aren’t included .

package23.gif

From the main Package Maker screen edit the ‘snapshot’ entry  in the contents window and name it ‘I Can Animate’ – substituting this for the name of the real package.

Click the ‘File’ -> ‘save’ menu selection and provide a suitable name for the package. Once completed, click the ‘Project -> Build’ Item, provide a suitable name and click save. Package Maker will proceed to create the package based on the manifest identified during the snapshot process.

package24.gif
package25.gif
package26.gif
package27.gif

I hope this was of some help, there are a lot of options and different methods for package creation. Which method you pick will depend on the application and your experience. This article I hope serves as a starting point for anyone looking to use OSX packaging in a enterprise environment.

All my articles, including non OSX ones can be found on my BLOG. Please drop by and if you have any suggestions or errors I'd love to hear from you. If this article is helpful please comment or mark it as such!
1
0 Comments

Featured Post

Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Suggested Articles

Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month