Using WiX how to disable / enable controls based on property changes?

My brain is melting a little at the moment when I have WiX Combobox, and when I change my choice, I want to disable / enable other elements of the user interface.

<ComboBox Property="SQLAUTHTYPE"> <ListItem Value="WindowsAuth" Text="Windows Authentication" /> <ListItem Value="SqlAuth" Text="SQL Authentication" /> </ComboBox> 

That is, when these events are fired ...

  MSI (c) ... PROPERTY CHANGE: Modifying SQLAUTHTYPE property. Its current value is 'WindowsAuth'. Its new value: 'SqlAuth'. MSI (c) ... PROPERTY CHANGE: Modifying SQLAUTHTYPE property. Its current value is 'SqlAuth'. Its new value: 'WindowsAuth'. 

The following user interface elements are marked as disabled when WindowsAuth is selected and enabled when SqlAuth is selected ...

  <Control Type="Edit" Width="164" Height="16" X="25" Y="149" Id="SQLAccountTextbox" Property="SQLACCOUNT" <Control Type="Edit" Width="164" Height="16" X="190" Y="148" Id="SQLPasswordTextbox" Property="SQLPASSWORD" Password="yes" /> 
+7
user-interface properties wix wix3
source share
1 answer

This should do it:

 <Control Type="Edit" Width="164" Height="16" X="190" Y="148" Id="SQLPasswordTextbox" Property="SQLPASSWORD" Password="yes"> <Condition Action="enable">SQLAUTHTYPE = "SqlAuth"</Condition> <Condition Action="disable">SQLAUTHTYPE = "WindowsAuth"</Condition> </Control> 
+12
source share

All Articles