InstallerTaskBase.

InstallerControlConditionsElement Property

Summary

Used to validate and perform operations as the result of information entered by the user into controls on custom dialogs.

Parameters

Attribute Type Description Required
dialog string Refrence to a dialog. Used to associate the control with the dialog. True
control string Refrence to a control. Maps to a control for the specified dialog. True
action string The action that is to be taken on the control. The possible actions are shown in the following table. DescriptionSet control as the default.Disable the control.Enable the control.Hide the control.Display the control.
Value
Default
Disable
Enable
Hide
Show
True
condition string A conditional statement that specifies under which conditions the action should be triggered. If this statement does not evaluate to TRUE, the action does not take place. If it is set to 1, the action is always applied. True
remove bool If true, the control condition is removed. If false, the control condition is added. False

Examples

Remove the control condition for the Browse button from the customize dialog and add control conditions for a web dialog <controlconditions> <!-- Remove control condition for Browse button on customizeDlg --> <controlcondition dialog="CustomizeDlg" control="Browse" action="Hide" condition="Installed" remove="true" /> <!-- Add control conditions for the web folder dialog --> <controlcondition dialog="WebFolderDlg" control="Back" action="Disable" condition="ShowUserRegistrationDlg=""" /> <controlcondition dialog="WebFolderDlg" control="Back" action="Enable" condition="ShowUserRegistrationDlg<>""" /> </controlconditions>
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks.Msi
Containing Type
InstallerTaskBase

Syntax

[BuildElement("controlconditions", ProcessXml = false)]
public SchemaElement[] InstallerControlConditionsElement { get; set; }

Attributes

Type Description
BuildElement

Value

Type Description
SchemaElement[]