EvaluateCondition Method (condition, defaultValue)

Microsoft Deployment Tools

Deployment Tools Foundation EvaluateCondition Method (condition, defaultValue)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionEvaluateCondition(String, Boolean)
Evaluates a logical expression containing symbols and values, specifying a default value to be returned in case the condition is empty.
Declaration Syntax
C# Visual Basic Visual C++
public bool EvaluateCondition(
	string condition,
	bool defaultValue
)
Public Function EvaluateCondition ( _
	condition As String, _
	defaultValue As Boolean _
) As Boolean
public:
bool EvaluateCondition(
	String^ condition, 
	bool defaultValue
)
Parameters
condition (String)
conditional expression
defaultValue (Boolean)
value to return if the condition is empty
Return Value
The result of the condition evaluation
Remarks

Win32 MSI API: MsiEvaluateCondition

Exceptions
Exception Condition
InvalidHandleException the Session handle is invalid
SyntaxErrorException the conditional expression is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)