WiseScript Editor Reference
47
To complete the dialog box
z
Variable
Select or enter a variable in which to put the status of the service. Possible return
results are: Unknown, Running, Stopped, Paused, StartPending, StopPending,
ContinuePending, or PausePending. Unknown means the service was not found or
the current user does not have privileges to query the service. If the status ends
with the word Pending, the service has received a request, but is still processing the
request.
z
Service Name
Enter the name of the service. This is not necessarily the same name you see in the
Services control panel. If you are unsure of the service name, consult its
documentation or manufacturer.
Compiler Variable Actions
Compiler Variable If, Else, and End actions are used in an If block to let you compile
different versions of an installation. You set the value of a compiler variable at compile
time, and the actions inside a compiler variable If block are added to the script
according to the value of the compiler variable
The Add Text to INSTALL.LOG action within the Compiler Variable If block is added to the
final script. The debug information you requested then appears in the installation log.
To create a compiler variable If block
1. Add a Compiler Variable If action and complete the dialog box:
If Variable
Build an If statement by selecting a compiler variable and a comparison.
The Value
Enter the value to be used in the comparison. This is case-sensitive. Do not
enter variables in this field, because it checks your computer in real time, not
run time.
If you selected File Exists above, the If statement checks to see if the file that
you enter in The Value exists. If you selected File Version Equal or Greater,
enter the file in The Value.
2. Below the Compiler Variable If action, add one or more actions to perform if the
compiler variable has the specified value.
3. (Optional) Add a Compiler Variable Else action, followed by one or more actions to
perform if the compiler variable does not have the specified value.
4. Add a Compiler Variable End action.
The sample script Compvar.wse uses this action. For details on sample scripts, see
ScriptHelp.htm in the Samples subdirectory of this product’s installation directory.
See also:
Compiler Variables and Run-time Variables
on page 29
Содержание ALTIRIS INVENTORY 7.0 SP2 - FOR NETWORK DEVICES V1.0
Страница 1: ...WiseScript Editor Reference ...
Страница 31: ...WiseScript Editor Reference 31 ...
Страница 91: ...WiseScript Editor Reference 91 ...
Страница 148: ...WiseScript Editor Reference 148 ...