You might have guessed I’ve had my head in Wix for a while, well here is another titbit that I have found.    I had a screen which if the user selected IntegratedSecurity, then it would disable the username and password entry boxes on the screen.     Again I used to a condition,this time however it was on a control and it was to used to enable/disable the control based on a check box.   Then based on the property that was set by a checkbox, I was able to enable /disable the control

The Wix snippet is as follows

 

<Control Type="Edit" Width="87" 
Height="15" X="255" Y="60" Id="UserEditBox" Property="USEREDITBOXVALUE" > <Condition Action="enable" >USEINTEGRATEDSECURITY = 1</Condition> <Condition Action="disable"><![CDATA[USEINTEGRATEDSECURITY <>1]]></Condition> </Control>
 
<Control Type="Edit" Width="87" Height="15" X="255" Y="60" Id="PasswordEditBox"
                       Property="PASSWORDTEXTBOXVALUE" >
         <Condition Action="enable" >USEINTEGRATEDSECURITY = 1</Condition>
         <Condition Action="disable"><![CDATA[USEINTEGRATEDSECURITY <>1]]></Condition>

</Control>
<Control 
Id="IntegratedSecurityCheckBox"
Type="CheckBox"
Text="Use Integrated Security"
Property="USEINTEGRATEDSECURITY"
Width="200"
Height="15"
X="26" Y="241"
CheckBoxValue="1"/>
 
Advertisements