AddDetectCondition Method (Advanced UI and Suite/Advanced UI)
InstallShield 2022 » 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 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 AddDetectCondition method adds a detection condition to a package in an Advanced UI or Suite/Advanced UI project.
The detection condition is a condition that the Advanced UI or Suite/Advanced UI installation should use to evaluate whether the package is already installed on target systems. If this does not change from false to true (or from true to false) at run time, the Advanced UI or Suite/Advanced UI installation assumes that the package failed to install (or remove) its payload. In addition, subsequent maintenance and remove operations (or subsequent maintenance and install operations) may not behave as expected.
Syntax
AddDetectCondition () As ISWiSuiteCondition
Parameters
The AddDetectCondition method does not take any parameters.
Applies To
• | ISWiSuitePackage |
See Also
Building Conditional Statements in Advanced UI and Suite/Advanced UI Projects
Types of Condition Checks in Advanced UI and Suite/Advanced UI Projects
Creating a Custom Condition for an Advanced UI or Suite/Advanced UI Installation