3

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?

Jon Taylor
  • 7,865
  • 5
  • 30
  • 55

1 Answers1

4

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

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
  • Do you mean that if we want to define an additional checkbox, its value will be hidden? To better clarify my question we want to pass the checkbox value to an msi that is part of the bundle. (We have to store the value of the new checkbox in variable which we can pass as command line parameter to a package inside the bindle/chain) – user1539296 Jul 24 '12 at 23:39
  • 1
    No, I mean that other checkboxes are ignored entirely. WixStdBA only sets variable values for checkboxes on the Options page. – Bob Arnson Jul 25 '12 at 00:08
  • Hi Bob, This time I am using Wixtool V3.10, since checkbox's values are not reflecting in variables in Bootstrap application. This issue has been raised after updated to V3.10 – SULFIKAR A N Apr 21 '17 at 10:51