WiseScript Editor Reference
114
WiseScript Actions
To complete the dialog box
z
Variable
Specify a variable. A variable name must begin with a letter, must contain only
numbers, letters, and underscore characters, and must be 28 characters or less. It
should not be enclosed in % signs.
z
New Value
Enter the new value of the variable. If you enter a variable, enclose it in % signs.
The value of a variable can be up to 32 K in size.
The new value is also affected by the option set in Operation.
z
Operation
Select the operation to be performed on the value in New Value.
Nothing
No additional changes are made.
Increment, Decrement
If the value is a number, it is increased or decreased by one. To do this
operation, you must specify the variable’s existing value in the New Value
field. Example: To increment the variable VAR, enter VAR in the Variable field
and %VAR% in the New Value field.
Remove trailing backslashes
Trailing \ characters are removed, converting the variable to a valid directory
name.
Convert to long or short filename
Converts an existing path to its equivalent long or short path if the installation
runs on Windows 95 or NT. For this to work, the specified directory or file must
exist.
Convert to uppercase or lowercase
All alphabetical characters are converted to the case you select.
Evaluate Expression
The expression in New Value is evaluated according to the rules outlined in
Variables and Expressions
on page 33.
z
Append to Existing Value
Mark this to add the variable’s new value to the end of its original value instead of
replacing it.
z
Remove File Name
Mark this to remove a file name from the end of a returned path, leaving only the
directory name.
z
Read Variable From Values File
Mark this to read the variable from the values file that is specified on a command
line to the installation .EXE using the /M command-line option. The values file is a
simple text file with variables listed, one per line, in NAME=“VALUE” format. If the
variable is found in the values file, the specified value is used; otherwise, its value is
unchanged. It can be up to 32 K in size.
The sample scripts Adding.wse and Division.wse use this action. For details on sample
scripts, see ScriptHelp.htm in the Samples subdirectory of this product’s installation
directory.
Содержание WISESCRIPT EDITOR 8.0
Страница 1: ...WiseScript Editor Reference ...