Burn: How to store a checkbox value in a variable

本秂侑毒 提交于 2019-12-12 21:02:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!