Application Packaging Developer's Guide

Package Components

The components of a package fall into two categories: package objects, the application files to be installed, and control files, which control how, where, and if the package is installed.

The control files are also divided into two categories: information files and installation scripts. Some of these control files are required and some are optional.

To package your applications, you must first create the required components, and any optional components, that make up your package. Then you can build the package using the pkgmk command.

To build a package, you must provide the following:

The figure below describes the contents of a package.

Figure 1–1 The Contents of a Package

The preceding context and the following context describe the graphic.

Required Package Components

You must create the following components before you build your package:

Optional Package Components

Package Information Files

There are four optional package information files you can include in your package:

Each package information file should have an entry in the prototype file. See Creating Information Files for more information on creating these files.

Package Installation Scripts

Installation scripts are not required. However, you can provide scripts that perform customized actions during the installation of your package. An installation script has the following characteristics.

The four script types are as follows:

See Creating Installation Scripts for a more information on installation scripts.