Previous Topic: Localize the Installation Dialogs Through the GUINext Topic: Installer Tasks


Build the Final PIF Product MERCHANT

Building on the previous sections, the prototype file MERCHANT.Any.@prm for the sample PIF product MERCHANT should look like this:

@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 ;
#dlgpreinit: dlgInstallationDirectory ;
@ENDPROD:
@COMPONENT:
#chead: component1 ;
#dir: bin , root , sys , drwxrwxrwx ;
#file: bin/merchant.jar , /myhomepath/src/merchant.jar , root , sys , -r--r--r-- , 1 ;
#file: bin/run_merchant.sh , /myhomepath/scripts/run_merchant.sh , root , sys , -r-xr-xr-x , 1 ;
#file: bin/create_tables.sh , /myhomepath/scripts/create_tables.sh , root , sys , -r-xr-xr-x , 1 ;
#slink: /usr/bin/run_merchant.sh , bin/run_merchant.sh ;
@ENDCOMP:
@DEFAULT:
#parameter: $PATHmerchant , /home/merchant ;
@ENDDEFAULT:
@DIALOG:
#dhead: 600 , 400 , dlgInstallationDirectory , 1 ;
#label: 1 , 1 , lblInstallDirectory , 2 ;
#instdir: 1 , 2 , tfInstallationDirectory , $PATHmerchant ;
#navbutton: 1 , btnInstall , 3 , 1 ;
#navbutton: 2 , btnCancel , 4 , 0 ;
@ENDDIALOG:
@RESOURCE:
#locale: ENU ;
#text: 1 , Select installation directory ;
#text: 2 , Installation directory: ;
#text: 3 , &Install ;
#text: 4 , &Cancel ;
@ENDRESOURCE:
@COMPONENT:
#chead: lang_spec ;
#locale: ENU ;
#file: bin/merchant.enu , /myhomepath/src/merchant.enu , root , sys , -r--r--r-- , 1 ;
@ENDCOMP:
@COMPONENT:
#chead: lang_spec ;
#locale: DEU ;
#file: bin/merchant.deu , /myhomepath/src/merchant.deu , root , sys , -r--r--r-- , 1 ;
@ENDCOMP:
@RESOURCE:
#locale: DEU ;
#text: 1 , Auswahl des Installationsverzeichnisses: ;
#text: 2 , Installationsverzeichnis: ;
#text: 3 , &Installieren ;
#text: 4 , &Abbrechen ;
@ENDRESOURCE:

To build the PIF product MERCHANT through the command line enter the pifmk command in the directory where the prototype file is located, as follows:

pifmk -f MERCHANT.Any.@prm

The PIF product MERCHANT is built in the current working directory; its PIF file name is MERCHANT.Any.@pif.

To build the PIF Product MERCHANT using the Packager GUI

  1. Run the smgui command to launch the Packager GUI.
  2. Select the PIF product MERCHANT in the project pane.
  3. Choose Build from the toolbar.

    The Build product dialog appears.

    For this sample PIF product ignore the Strip and Self installing check boxes.

    If the product MERCHANT already exists, another check box appears that you can check to overwrite the existing product.

  4. Click Build.

    The PIF product MERCHANT.Any.@pif appears in the Media table.