Previous Topic: Add a Procedure to the PIF Product MERCHANTNext Topic: Add a Dialog to Query the Installation Path of the PIF Product MERCHANT


Change the Installation Path of the PIF Product MERCHANT

Up to now, the installation path of the PIF product MERCHANT is fixed; it cannot be changed at installation time. Now, we will define a parameter $PATHmerchant that lets you change the installation path.

The parameter must be defined in the parameter section (default section) of the prototype file, as follows:

@DEFAULT:
#parameter: $PATHmerchant , /home/merchant ;
@ENDDEFAULT:
#parameter: $PATHmerchant , /home/merchant ;

The name of the parameter is $PATHmerchant; its default value is set to /home/merchant.

Replace the absolute value /home/merchant for the installation path in the #ppath keyword with the parameter $PATHmerchant in the product information section of the prototype file, as follows:

@PRODUCT:
#phead: MERCHANT , 2.1.0.0 ;
#sys: Any ;
#locale: ENU ;
#comment: This is an example for a PIF product ;
#ppath: $PATHmerchant ;
#pdep: Ingres , 4.0.0.0 ,  >= ;
#postinit: bin/create_tables.sh ;
@ENDPROD:

Now, you are able to change the installation path.

One way to do this is using a shell parameter and overwriting the default setting, for example:

PATHmerchant=/opt/merchant; export PATHmerchant

Another way to change the installation path is using a response file to reconfigure the product installation.

The command line interface and the Packager GUI add the actual installation path automatically to the PIF product. No actions are necessary.