Burn: How to store a checkbox value in a variable

2019-07-17 08:01发布

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条回答
该账号已被封号
2楼-- · 2019-07-17 08:11

WixStdBA automatically saves the state of all named checkbox controls that appear on the Options page. WixStdBA doesn't expose any other checkbox values.

查看更多
登录 后发表回答