Examples Of Conditions; Wisefixconditions - Symantec WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION EXPRESS V1.0 Installation Manual

Table of Contents

Advertisement

Examples of Conditions

WiseFixConditions

Windows Installer Editor Reference
When adding conditions to the Launch Conditions icon, you can add conditions that
check properties or environment variables, but you cannot add conditions that check
the installed state of a component or feature.
You might need to include the merge module CondFix.msm, that fixes certain
Windows Installer limitations related to component conditions.
See

WiseFixConditions

Property names and values, by default, are case-sensitive. To make them case-
insensitive, precede the operator with ~= instead of =.
Example: If you enter the condition REMOVE=ALL but the value of the REMOVE
property is currently "All" (with upper- and lowercase), the condition is false. To
write the condition so that it is case-insensitive, type the condition as follows:
REMOVE~="All"
Environment variable names are not case-sensitive.
Non-existent property values are treated as empty strings and evaluate to false.
Operators and precedence are the same as in the BASIC and SQL languages, but
you can override precedence with parentheses.
Arithmetic operators and floating point numeric values are not supported.
For details, see Conditional Statement Syntax in the Windows Installer SDK Help.
You can build conditions using property names, environment variables, and feature and
component states. Conditions can contain both Windows Installer properties and
properties that you create. A complete list of Windows Installer properties is available in
Property Reference in the Windows Installer SDK Help.
Condition
SystemLanguageID=1033
REMOVE~="ALL"
NOT Installed
CHECKBOX_IS_MARKED
VersionNT
VersionNT AND NOT Installed
Windows Installer Editor contains a special merge module, WiseFixConditions
(CondFix.msm), that fixes certain Windows Installer limitations:
on page 383.
The condition is true if
The installation is running on a computer whose
language is set to English.
The product is being uninstalled. The ~ makes the
condition case-insensitive.
The product is being installed for the first time.
You make a check box and associate the property
CHECKBOX_IS_MARKED with it, and during
installation, the end user marks the check box.
The installation is running on Windows 2000 or
later.
The installation is running on Windows 2000 or
later, and the application is not yet installed.
Using Conditions and Properties
383

Advertisement

Table of Contents
loading

This manual is also suitable for:

Windows installer editor 7.0 sp2

Table of Contents