The PIF packaging format supports the execution of scripts containing procedures before and after package installation. These scripts can be defined for both the package and its components. The script file names must be specified in one of the components of the package.
Bourne-compatible shell scripts are assumed for execution. You can use other scripting languages, such as Perl, but then you need to specify the script interpreter.
Scripts use parameters to interchange information with the installation process. The following types of parameters are distinguished:
Parameters set by the Installer and passed to the scripts.
Parameters defined by user-written installation scripts or provided through a response file or an installation dialog.
The following internal parameters are used:
Controls backup creation prior to updating or reinstalling an existing product version.
Controls whether a dialog element is grayed out if it is not used.
Controls whether the specified parameter can be edited using dialog elements. If PIF_CHANGEPARAM_parameter has the value 1 (True), dialog elements that alter the specified parameter are enabled. If the value is 0 (False), the specified parameter is not accessible.
Specifies the name of the field that was active (had the focus) before a script was called. Based on this information the script can behave differently depending on the field from where it was called. This internal parameter is passed to any validation script within a PIF dialog, that is, field validation script, action script, dialog validation script, and dynamic dialog detection script.
Specifies the language to use for the product installation. The value of this parameter is a 2 or 3 bytes language identifier, for example, ENU.
Indicates the installation dialog type. Possible values are:
JAVA, VT100, and NONE.
Specifies the name of the dialog corresponding to the selected button.
Identifies the install job. Possible values are:
INSTALL, REINSTALL, UPDATE, and REMOVE.
Specifies the install mode. Possible values are:
ATTENDED, UNATTENDED, and ASK.
Specifies the installation path of the PIF package.
Indicates the locale where the PIF package is to be installed.
Specifies the name of a log file.
Specifies the installation path of the main package.
Specifies the name of the temporary folder where the pre-installation components are extracted.
Specifies the name of the PIF package.
Indicates the operating environment of the PIF package.
Specifies the version of the PIF package.
Specifies the name of the response file used to provide parameter values.
Controls the removal of configuration files.
Specifies the name of the vendor of the PIF package.
|
Copyright © 2013 CA.
All rights reserved.
|
|