Previous Topic: Create the Prototype File and Specify Product Information for the PIF Product MERCHANTNext Topic: Specify Files for the PIF Product MERCHANT


Define Dependencies for the PIF Product MERCHANT

As specified in the requirements, the application MERCHANT is a database application using the Ingres Enterprise Relational Database (Ingres). Therefore, Ingres must be installed before the PIF product MERCHANT is installed.

To ensure the product MERCHANT is installed only if an appropriate Ingres database exists on the system, you must define a dependency in the prototype file. The highlighted new line in the product information section specifies the dependency and the required product, as follows:

@PRODUCT:
#phead: MERCHANT , 2.1.0.0 ;
#sys: Any ;
#locale: ENU ;
#comment: This is an example for a PIF product ;
#ppath: /home/merchant ;
#pdep: Ingres , 4.0.0.0 , >= ;
@ENDPROD:
#pdep: Ingres , 4.0.0.0 , >= ;

The name of the required product is Ingres. The version number 4.0.0.0 in combination with the subsequent operator >= specifies that the required Ingres product version must be greater than or equal to 4.0.0.0. The Installer checks if an appropriate Ingres version is installed on the target computer before installing the product MERCHANT.

To define dependencies through the command line add the new #pdep: line to the prototype file, using any text editor.

To define dependencies through the Packager GUI

  1. Run the smgui command to launch the Packager GUI.
  2. Select the PIF product MERCHANT in the Project pane.
  3. Select the Dependencies tab.
  4. Right-click within the subproject pane and select Add from the context menu.

    The Product dependency dialog appears.

  5. Enter or select the following values:

    Product name: Ingres

    Product version: 4.0.0.0

    Dependency type: Mandatory

    Operator: >=

  6. Click Add.

    The dependency specification is incorporated in the prototype file.