The ScriptFiles section contains the absolute file paths of the scripts that modify the corresponding response files. SFilen modifies RFilen. For example, SFile1 modifies RFile1.
For a description of the Packager-specific scripting language see Packager Scripting Language.
The ScriptFiles section can have the following entries:
|
Sfile1=script_file_1 |
optional |
|
: |
|
|
Sfilen=script_file_n |
optional |
|
|
|
Specifies the nth script file. This entry contains the absolute file path of the script and modifies the nth response file.
Example
The Microsoft Office product can be installed unattended, if you provide a response file, such as MySetup.stf, as a parameter when Setup is called (see the description in the ResponseFiles section of the original.sxp file).
To adapt this response file for a specific target computer, you can write a script in the internal script language, that modifies the response file prior to installation on the target computer. For example, the script file could change the root directory for Microsoft Office specified in MySetup.stf.
You can save the script in the MyScript.scr file and copy this file to the version directory of the product. Then insert the following lines in original.sxp:
#ScriptFiles# Sfile1="$(SxpSrvRelDir)\MyScript.scr"
The script is used on the target computer for the file entered in the ResponseFiles section of original.sxp in the line starting with 'Rfile1='.
The Installer saves the response file that is modified by the associated script in a temporary directory. The path of this locally modified file is supplied by the internal $(SxpRFile1) parameter.
| Copyright © 2014 CA Technologies. All rights reserved. |
|