Previous Topic: Packager Scripting LanguageNext Topic: Syntax and Semantics of the Packager Scripting Language


Scripts in the Packager Environment

Scripts are files containing instructions for modifying text files and used by the Packager for adapting ASCII files for target computers. Parameters can be used as variables in the scripts for target computer-specific values. The software management installer replaces these parameters with the target computer-specific values before applying the script to an ASCII file.

In an SXP product, you can specify scripts in the following archive files:

A script can be contained in a product and distributed with the product. It is also possible to not link the scripts directly to a product but, for example, make them available on a shared resource. The advantage of this is that scripts can be changed independently of the product. The disadvantage, however, is that it may be not possible to make the scripts available on the shared resource using software management mechanisms.

If the scripts have to be provided independent of the product data, they must be placed in a directory that is common to all products on the target computer. This directory can be configured in the #Directories# section of the sxpengnn.ini file. The path of a script must then be specified in the original.sxp and ascnnnn.sxp archive files using the SxpScriptDir parameter.