Another option is to use a second property for the UI state, and then on click 
of the next button you assign the value of your property conditionally.

Ex:
In CustomSettingsDlg.wxs:

<Control Id="IncomingEmailEnabled" Type="CheckBox" X="180" Y="60"
Width="100" Height="18" Property="IncomingEmailEnabledUI" CheckBoxValue="True"
Indirect="no" />

           <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="!(loc.WixUINext)">
               <Publish Property="INCOMINGEMAILENABLED" Value="False">NOT 
IncomingEmailEnabledUI </Publish>
               <Publish Property="INCOMINGEMAILENABLED" Value="True"> 
IncomingEmailEnabledUI </Publish>
               <Publish Event="NewDialog" Value="..." Order="10" />
            </Control>
       

-----Original Message-----
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Wednesday, February 06, 2013 12:12 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] setting a checkbox false value

You could try to hardcode "false" in the app.config. Then, put a conditional 
statement inside the Component element that has the XmlFile in it so that the 
component will only be installed (and the app.config written to) if the 
property exists. 

When the box is deselected, the property should be deleted. When it is 
selected, the property should be set to the value defined by CheckBoxValue.


<Component ...>
   <util:XmlFile ... />
   <Condition>INCOMINGEMAILENABLED</Condition>
</Component>



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-setting-a-checkbox-false-value-tp7583389p7583394.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 and get the 
hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to