Get Windows Installer Property; Halt Compilation; If Statement - Symantec WISESCRIPT PACKAGE EDITOR 7.0 SP2 - FOR WISE INSTALLATION STUDIO V1.0 Installation Manual

Hide thumbs Also See for WISESCRIPT PACKAGE EDITOR 7.0 SP2 - FOR WISE INSTALLATION STUDIO V1.0:
Table of Contents

Advertisement

Halt Compilation

If Statement

WiseScript Package Editor Reference
To complete the dialog box
Dest. Variable
Select or enter a variable to store the value of a Windows Installer property.
Property Name
Enter the name of the Windows Installer property in the currently running Windows
Installer installation.
See also:
Set Windows Installer Property
Evaluate Windows Installer Condition
This action immediately stops compilation of the script. It must be placed between
Compiler Variable If and Compiler Variable End statements or the script will never
compile. Use this to ensure that conditions are met before compiling.
To complete the dialog box
Message Text
Enter a message to display to the user if the compile is stopped.
Example: You develop a script that uses runtime files. On your own computer, you have
the correct runtime files to pull into the installation. However, you want to prevent
compilation on other computers if they lack correct runtime files because the resulting
installation could damage runtime installations on destination computers.
You do this by adding a Compiler Variable If/Else/End block. You get the file version of a
key runtime file using the file version option of a Compiler If statement. Then, if the file
version is not the one the script requires, use the Halt Compilation action to prevent
compilation.
This action marks the beginning of a conditional block of script, an If block. If the
condition specified in the If Statement is true, the lines inside the If block are executed.
The If block can also contain an Else or several ElseIf actions.
Note
This is different from the If Statement action that is in MSI Script in a Windows Installer
installation.
To create an If block
1.
Add an If Statement and complete the dialog box:
If 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
on page 116
on page 77
Variables and Expressions
WiseScript Actions
on page 34. The
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 7.0 sp2

Table of Contents