Previous Topic: Progress of ScriptsNext Topic: Product Parameters


Dependencies of PIF Products

The installation of a PIF product can depend on the presence or absence of another PIF product or product version on the target computer. Such a dependency can exist between the PIF product to install and another required product in the PIF, PKG, or RPM packaging format.

Dependencies of products can be of the following types:

Mandatory

A product prod1 is mandatory dependent on product prod2, when prod2 must be installed on the target computer before product prod1 is installed. If prod2 is not installed, the Installer automatically searches for it, using a specific algorithm, and installs it if found. If the Installer cannot find prod2, the installation is aborted. Prod2 is called required product.

Incompatible

A product prod1 is incompatible dependent on product prod2, when prod2 must not be installed on the target computer when product prod1 is installed. If prod2 is installed, the installation of prod1 is aborted.

Optional

A product prod1 is optional dependent on a product prod2, when prod2 is not mandatory required before prod1 is installed. Prod2 is installed on the target computer only on user demand. If a previous version of prod2 already exists on the target computer, it is updated to the new version.

Dependencies of a product are defined in the prototype file, using the keywords #pdep (mandatory and optional) or #dis (incompatible), or through the Packager GUI.

When installing a product, the Installer automatically resolves all dependencies to other PIF products defined in the product and its components, if needed over several layers. The Installer ensures that all required products are installed on the target computer before the actual product is installed. You must only ensure that all required products are provided on the distribution media.

When a product is being removed, the Installer automatically removes required products, over several layers if needed, provided that other products do not require these products. The Installer checks only those required products for removal that were delivered and installed with the product.

Incompatible products are not automatically removed.