Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm new to wix installer...i had an problem in creating check box controllers..this my code and error occured

XML
<Dialog Id="AdvancedDlg" X="50" Y="50" Width="370" Height="300" Title="[ProductName] Setup" NoMinimize="yes">

              <Control Id="CompilePyc" Type="CheckBox" X="135" Y="71"   CheckBoxValue="1" Width="230" Height="16" Hidden="yes" Text="Compile .py files to byte code after installation" TabSkip="no" />

              <Control Id="Ok" Type="PushButton" X="304" Y="273"   Width="56" Height="17" Text="Ok" TabSkip="yes" Default="yes" Cancel="yes">
                    <Publish Event="EndDialog" Value="Return">1</Publish>
                </Control>


Error: The Control element must have a value for exactly one of the Property or CheckBoxPropertyRef attributes.
Posted
Updated 21-Dec-14 19:51pm
v2

1 solution

Your need to use Property, for example

XML
<Control Id="CompilePyc" Type="CheckBox" X="135" Y="71" Property="CompilePycTrue"  CheckBoxValue="1" Width="230" Height="16" Hidden="yes" Text="Compile .py files to byte code after installation" TabSkip="no" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900