Note that there are some explanatory texts on larger screens.

plurals
  1. POStoring the value of CheckBox in WiX
    primarykey
    data
    text
    <p>I have authored an installer using Wix 3.6 RC. I have a checkbox in the dialog UI which is disabled and unchecked initially. There is a "Verify" button next to it. When I press this button a custom action gets executed (immediate) and sets a value of parameter which decides whether check box gets enabled or not. Here is the code:</p> <pre><code>&lt;Control Id="VirtualCheckBox" Type="CheckBox" CheckBoxValue="1" X="35" Y="100" Width="160" Height="20" Disabled="yes" Text="!(loc.VirtualizationDlg_ChkBox)" Property="ENABLEVIRTUALIZATION"&gt; &lt;Condition Action="enable"&gt;&lt;![CDATA[INTEGRATED = "1"]]&gt;&lt;/Condition&gt; &lt;Condition Action="disable"&gt;&lt;![CDATA[INTEGRATED = "0"]]&gt;&lt;/Condition&gt; &lt;/Control&gt; </code></pre> <p>I am storing this value of checkbox in registry:</p> <pre><code>&lt;Component Id="Virtualization_RegistryEntries" Guid="GUID-IS-HERE"&gt; &lt;Condition&gt;Not Installed&lt;/Condition&gt; &lt;RegistryKey Root="HKCU" Key="Software\!(loc.CompanyName)\!(loc.ProductName)"&gt; &lt;RegistryValue Type="string" Name="Virtualization" Value="[ENABLEVIRTUALIZATION]" KeyPath="yes"/&gt; &lt;/RegistryKey&gt; &lt;/Component&gt; </code></pre> <p>Now I have to do this:<br/> 1) If user does not click the Verify button : Registry gets value 0<br/> 2) If he clicks button (CA gets false and checkbox remains disabled) : Registry gets value 0<br/> 3) If he clicks button and checkbox enables but he does not check the checkbox : Registry gets value 0<br/> 4) If he clicks button and checkbox enables and he does check the check box : Registry gets value 1<br/></p> <p>Mine is not working at only one condition, when he checks this, registry does get 1 but either it is disabled or remains unchecked the registry gets nothing.<br/></p> <p>How can I resolve this issue?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload