Create an Installer plugin and embed it in your package.
| 1 | Open Xcode. |
| 2 | Choose File > New Project |
| 3 | Select the Mac OS X > Application Plug-ins > Installer Plugin project template. |
| 4 | Click Choose . |
| 5 | Type MyFirstPlugin in the Save As: text field. |
| 6 | Click Save. |
| 7 | Choose Build > Build. |
If you're using Packages:
| 1 | Open your Packages project. |
| 2 | Click the Presentation tab. |
| 3 | Drag and drop the MyFirstPlugin.bundle plugin into the list of steps. |
| 4 | Build your project. |
If you're using Iceberg:
| 1 | Open your Iceberg project. |
| 2 | Disclose the contents of the root package or metapackage in the Packages & Metapackages list. |
| 3 | Select the Plugins row. |
| 4 | Open the MyFirstPlugin folder in the Finder. |
| 5 | Go to the build/Release folder. |
| 6 | Drag and drop the MyFirstPlugin.bundle plugin to the list of Plugins. |
| 7 | Build your project. |
If you're using PackageMaker (with a Mac OS X 10.3 target):
| 1 | Build your metapackage or package with PackageMaker. |
| 2 | Select your metapackage or package in the Finder. |
| 3 | Choose Show Package Contents from the contextual menu. |
| 4 | Go to the Contents folder. |
| 5 | Create a new folder named Plugins. |
| 6 | Open the MyFirstPlugin folder in the Finder. |
| 7 | Copy the InstallerSections.plist file to the Plugins folder. |
| 8 | Go to the build/Release folder. |
| 9 | Copy the MyFirstPlugin.bundle plugin to the Plugins folder. |