Wix 安装程序单选按钮问题 - 错误 LGHT0094:未解析的符号引用 'Property:'

Wix installer Radio Button issue - error LGHT0094 : Unresolved reference to symbol 'Property:'

我在 WixUI_InstallDir UI 中插入了以下对话框。它应该填充两个单选按钮。预期基于单选按钮输入,安装程序应安装选定的功能。

    <Dialog Id="QCTypeDetailsDlg" Width="370" Height="270" Title="!(loc.InstallDirDlg_Title)">
        <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="Please select the type of QC to install." />
        <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="QC Type" />
        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)" />
        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />

        <Control Id="QCType" Type="RadioButtonGroup" Property="QC_TYPE" X="20" Y="80" Width="290" Height="18" Indirect="yes" >
            <RadioButtonGroup Property="QC_TYPE">
                <RadioButton Value="1" Text="QC EXT" X="20" Y="100" Width="90" Height="18" />
                <RadioButton Value="2" Text="QC Standard" X="20" Y="120" Width="90" Height="18"/>
            </RadioButtonGroup>
        </Control>
    
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
            <Publish Event="ADDLOCAL" Value="ALL">1</Publish>
            <Publish Event="Remove" Value="QC_EXT_Feature">0</Publish>
            <Publish Event="Remove" Value="QC_STD_Feature">1</Publish>
            <Publish Event="EndDialog" Value="Return" />
        </Control>
        
        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUQCancel)">
            <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>
    </Dialog>

将wixobj与主程序链接时,light命令抛出以下错误,

error LGHT0094 : Unresolved reference to symbol 'Property:QC_TYPE' in section 'Fragment:'.

如果在Fragment下,或者主wxs文件中定义属性,

<Property Id="QC_TYPE" Value="1"/>

然后抛出如下错误

error LGHT0204 : ICE34: Property 1 must be defined because it is an indirect property of a RadioButtonGroup control QCTypeDetailsDlg.QCType.

我不确定这个对话框或 QC_TYPE 属性 有什么问题,任何建议都会有所帮助。

将 RadioButtonGroup 控件 属性 'Indirect' 值更新为 'no'

后编译正确
<Control Id="QCType" Type="RadioButtonGroup" Property="QC_TYPE" X="20" Y="80" Width="290" Height="18" Indirect="no" >