EasyManua.ls Logo

Symantec WISESCRIPT PACKAGE EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 - While Statement

Symantec WISESCRIPT PACKAGE EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0
268 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WiseScript Package Editor Reference 198
WiseScript Actions
When a WiseScript is called by a Windows Installer installation, you can also start and
stop services by using the Services page in Windows Installer Editor.
After you try to stop a service, the script pauses to give the service time to stop. The
currently logged-in end user must have the appropriate privileges to start and stop
services.
To complete the dialog box
z Service Name
Enter the name of the service. This is not necessarily the same name you see in the
Services control panel, but is the services internal name. If you used the Create
Service action to create the service, this is the same name you entered in the
Create Service Settings dialog box.
z Operation
Select to start or stop the service.
Example: Suppose a service must be stopped before it can be updated. Use this action
to first stop the service, then update its files.
See also:
Create Service on page 140
While Statement
This action begins a While loop. An End Statement must end the loop. As long as the
condition specified in the While Statement Settings dialog box is true, the script lines
inside the loop execute repeatedly. If the condition is not true, then the While loop is
exited, and the next script line is executed.
To create a While loop
1. Add a While Statement and complete the dialog box:
While Variable
Select a variable from the first drop-down list, and a comparison method from
the second drop-down list.
Expression True means the expression in the Value field below is evaluated
according to the rules outlined in Variables and Expressions on page 110. The
variable is ignored and can be left blank. The result is considered true if it
evaluates to a non-zero result.
(The password comparisons are applicable in WiseScript Package Editor only.)
The Value
Enter the value to be used in the comparison, or an expression if the
comparison is set to Expression True. If you enter variable names in this field,
do not surround them with percent signs (%). If you enter compiler variables,
then you must surround them with percent signs.
Perform While loop at least once
Mark this so the loop executes once before the test is performed. If the check
box is cleared, the loop is executed if the condition is true, but is not executed if
the condition is false.

Table of Contents

Related product manuals