问题
I was wondering how you store a checkbox value in a variable? I am using WiX Burn with a custom RtfTheme.
For example:
RtfTheme.xml
<Checkbox Name="TestCheckbox" X="-11" Y="-51" Width="246" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">Please select this box</Checkbox>
Bundle.wxs
<Variable Name="TestVariable" Type="numeric" Value="![CDATA[TestCheckbox]]"/>
I want the value of "TestVariable" to change value whenever I select or deselect the checkbox. Any help?
回答1:
WixStdBA automatically saves the state of all named checkbox controls that appear on the Options page. WixStdBA doesn't expose any other checkbox values.
来源:https://stackoverflow.com/questions/11640470/burn-how-to-store-a-checkbox-value-in-a-variable