I have a reason to have a checkbox appear on a different place in the same
dialog, based on a condition. I was trying to use propertyRef to allow both
checkbox controls to use the same property, but I can't get that to work.
Of course if I use the same property for each checkbox, I get a compile
error (duplicate property).
There must be a way to do this... any ideas?
Code snippet:
<Control Id="checkbox1" Type="CheckBox" Width="324" Height="34"
X="20" Y="145"
Property="ALLOW_FIREWALL_EXCEPTION" CheckBoxValue="1" Text="allow
firewall exception">
<Condition Action="show"><<![CDATA[TRIAL_VERSION <> "1" AND
REMOTE_ADMIN = "1"]]>
</Condition>
<Condition Action="hide"><![CDATA[MT_TRIAL_VERSION <> "1" AND
REMOTE_ADMIN <> "1"]]>
</Condition>
</Control>
<Control Id="checkbox2" Type="CheckBox" Width="324" Height="34"
X="20" Y="165"
Property="ALLOW_FIREWALL_EXCEPTION" CheckBoxValue="1" Text="allow
firewall exception">
<Condition Action="show"><<![CDATA[TRIAL_VERSION = "1" AND
REMOTE_ADMIN = "1"]]>
</Condition>
<Condition Action="hide"><![CDATA[MT_TRIAL_VERSION = "1" AND
REMOTE_ADMIN <> "1"]]>
</Condition>
</Control>
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Two-CheckBoxes-Same-Property-tp5576848p5576848.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users