user interface - Using WiX how do I disable/enable controls based on property change? -


I am currently melting a brain bit where I have a WiX combo box and when I change the selection other UI You want to disable / enable controls.

  & lt; Combobox property = "SQLAUTHTYPE" & gt; & Lt; ListItem value = "WindowsAuth" text = "Windows authentication" /> & Lt; ListItem value = "SqlAuth" text = "SQL authentication" /> & Lt; / ComboBox & gt;  

This happens when these events start ...

  MSI (c) ... Property Changes: Modifying the SQLAUTHTYPE Property Its current value is 'WindowsAuth': its new value: 'SqlAuth' MSI (C) ... Property Changes: Modifying SQL UTPP Property Its Current Value is 'Eclolite', its new Value: 'WindowsAuth'  

The following UI controls are flagged as disabled when WindowsAuth is selected and enabled So when SqlAuth is selected ...

  & lt; Control type = "edit" width = "164" height = "16" x = "25" y = "149" id = "SQLextactextbox" property = "SQLC" & lt; Control type = "edit" width = "164" height = "16" x = "190" y = "148" id = "SQLPasswordTextbox" property = "SQLPASSWORD" password = "yes" />  

should do this:

  & lt ; Control type = "edit" width = "164" height = "16" x = "190" y = "148" id = "SQLPasswordTextbox" property = "SQLPASSWORD" password = "yes" & gt; & Lt; Condition action = "enable" & gt; SQLAUTHTYPE = "SqlAuth" & lt; / Condition & gt; & Lt; Condition function = "disable" & gt; SQLAUTHTYPE = "WindowsAuth" & lt; / Condition & gt; & Lt; / Control & gt;  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -