Installation - The Lost Scrolls > Installer Plugins >

101 - My First Plugin

Objective


Create an Installer plugin and embed it in your package.

Instructions

Step 1 : Create the Installer plugin (instuctions are for Xcode 3)

1Open Xcode.
2Choose File > New Project…
3Select the Mac OS X > Application Plug-ins > Installer Plugin project template.
4Click Choose….
5Type MyFirstPlugin in the Save As: text field.
6Click Save.
7Choose Build > Build.

Step 2 : Embed the plugin in your package

If you're using Packages:

1Open your Packages project.
2Click the Presentation tab.
3Drag and drop the MyFirstPlugin.bundle plugin into the list of steps.
4Build your project.

If you're using Iceberg:

1Open your Iceberg project.
2Disclose the contents of the root package or metapackage in the Packages & Metapackages list.
3Select the Plugins row.
4Open the MyFirstPlugin folder in the Finder.
5Go to the build/Release folder.
6Drag and drop the MyFirstPlugin.bundle plugin to the list of Plugins.
7Build your project.

If you're using PackageMaker (with a Mac OS X 10.3 target):

1Build your metapackage or package with PackageMaker.
2Select your metapackage or package in the Finder.
3Choose Show Package Contents from the contextual menu.
4Go to the Contents folder.
5Create a new folder named Plugins.
6Open the MyFirstPlugin folder in the Finder.
7Copy the InstallerSections.plist file to the Plugins folder.
8Go to the build/Release folder.
9Copy the MyFirstPlugin.bundle plugin to the Plugins folder.


Last Updated: 2012-07-26