wix安装程序上的复选框控件错误 [英] Check box control error on wix installer

查看:88
本文介绍了wix安装程序上的复选框控件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是wix安装程序的新手...我在创建复选框控制器时出现问题..这个我的代码和错误发生了



i'm new to wix installer...i had an problem in creating check box controllers..this my code and error occured

<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.

推荐答案

您需要使用Property,例如



Your need to use Property, for example

<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" />


这篇关于wix安装程序上的复选框控件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆