AddCondition Method (Advanced UI and Suite/Advanced UI)

InstallShield 2018 » Automation Interface » Advanced UI and Suite/Advanced UI

Project • This information applies to the following project types:

Advanced UI
Suite/Advanced UI

Edition • The Advanced UI project type is available in the Professional edition of InstallShield. The Suite/Advanced UI project type is available in the Premier edition of InstallShield. For information about the differences between these two project types, see Advanced UI Projects vs. Suite/Advanced UI Projects.

The AddCondition method adds a condition to a condition group.

To add an extension condition to a condition group, use the AddExtensionCondition method.

Syntax

AddCondition (ConditionCheckName As String) As ISWiSuiteCondition

Parameters

AddCondition Method Parameters

Parameter

Description

ConditionCheckName

Specify the name of the type of condition check. Available options are:

Platform—Check target systems for one or more characteristics such as the operating system version, the architecture, and other platform details on target systems. For descriptions of each of the settings that are displayed for this type of condition check, see Platform Condition Settings.
FileExists—Check target systems for the presence of a particular file. For descriptions of each of the settings that are displayed for this type of condition check, see File Exists Condition Settings.
FileValue—Check target systems for specific information—date, version number, or content—for a particular file. For descriptions of each of the settings that are displayed for this type of condition check, see File Comparison Condition Settings.
RegistryExists—Check target systems for the presence of a particular registry key, and optionally a specific value name. For descriptions of each of the settings that are displayed for this type of condition check, see Registry Exists Condition Settings.
RegistryValue—Check target systems for specific information—DWORD, QWORD, string, multistring, file version, or product version—for a particular registry entry. If you do not specify a value name, the default value for the key that you specify is used for the comparison. For descriptions of each of the settings that are displayed for this type of condition check, see Registry Comparison Condition Settings.
PropertyValue—Check the value of a particular built-in Advanced UI or Suite/Advanced UI property, or a property that is defined in the Property Manager view. For descriptions of each of the settings that are displayed for this type of condition check, see Property Comparison Condition Settings.
MsiInstalled—Check target systems for the presence of a product that was installed by a particular .msi package. For descriptions of each of the settings that are displayed for this type of condition check, see MSI Package Condition Settings.
MsiRelated—Check target systems for the presence of a version of a product that you want to update, or for the presence of future versions of a product that you do not want to downgrade. In either case, the product whose presence is being checked is installed by an .msi package. For descriptions of each of the settings that are displayed for this type of condition check, see MSI Upgrade Condition Settings.

ConditionCheckName (cont.)

ParcelRef—Check whether a different package or a feature in the Advanced UI or Suite/Advanced UI installation is eligible for installation on a target system. For example, if a patch package is eligible for installation only if the base package is eligible for installation, you can create an Eligible Package condition to tie the patch’s eligibility to the base package’s eligibility. For descriptions of each of the settings that are displayed for this type of condition check, see Eligible Package Condition Setting.
IspInstalled—Check target systems for the presence of a product that was installed by a particular InstallScript package. For descriptions of each of the settings that are displayed for this type of condition check, see InstallScript Package Condition Settings.
Locale—Match one or more locale-related settings on target systems. For descriptions of each of the settings that are displayed for this type of condition check, see Locale Condition Settings.
SuiteInstalled—Check whether a particular version of an Advanced UI or Suite/Advanced UI installation is already installed on a target system. For descriptions of each of the settings that are displayed for this type of condition check, see Suite Installed Condition Settings.
AppxInstalled—Check target systems for the presence of a particular Windows App. For descriptions of each of the settings that are displayed for this type of condition check, see Windows App Package Condition Settings.
ParcelAction—Check the target state of a particular package in the Suite/Advanced UI installation. This type of condition is available only for actions that are associated with an event in the Events view or Packages view. For descriptions of each of the settings that are displayed for this type of condition check, see Package Operation Condition Settings.
FeatureAction—Check the target state of a particular feature in the Suite/Advanced UI installation. This type of condition is available only for actions that are associated with an event in the Events view or Packages view. For descriptions of each of the settings that are displayed for this type of condition check, see Feature Operation Condition Settings.

Project • The ParcelAction and FeatureAction type of conditions are available in Suite/Advanced UI projects.

Applies To

ISWiSuiteCondition

See Also