3
UI 시퀀스 WixUI_InstallDir
에 사용자 정의 대화 상자를 삽입하려고했습니다. 나는 Product.wxs
이라는 이름의 "main"파일과 InstallTypeDlg.wxs
이라는 다른 파일의 커스텀 대화 상자를 가지고 있는데, 둘 다 Installer.wixproj
에 존재한다. InstallTypeDlg.wxs
내WiX 컴파일 오류 사용자 정의 대화 상자 만들기
, 나는 다음과 같은 한 :
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="InstallTypeDlg" Width="370" Height="270" Title="Select Install Type">
<Control Id="InstallTypeSelection" Type="RadioButtonGroup" X="20" Y="55" Width="330" Height="120" Property="InstallType">
<RadioButtonGroup Property="InstallType">
<RadioButton Text="Type 01" Value="1" X="5" Y="0" Width="250" Height="15" />
<RadioButton Text="Type 02" Value="2" X="5" Y="20" Width="250" Height="15" />
</RadioButtonGroup>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.SetupTypeDlgBannerBitmap)" />
<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="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.SetupTypeDlgTitle)" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.SetupTypeDlgDescription)" />
<Control Id="TypicalText" Type="Text" X="60" Y="85" Width="280" Height="20" Text="!(loc.SetupTypeDlgTypicalText)" />
</Dialog>
</UI>
</Fragment>
</Wix>
나는 이렇게
Product.wxs
이 사용자 정의 대화 상자를 참조 :
나는이 프로젝트를 컴파일 할 때 지금, 나는 다음과 같은 오류가
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
<UI Id="MyWixUI_InstallDir">
<UIRef Id="WixUI_InstallDir" />
<DialogRef Id="InstallTypeDlg" />
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="InstallTypeDlg" Order="4">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallTypeDlg">1</Publish>
</UI>
:
InstallTypeDlg.wxs(8,0): error LGHT0094: Unresolved reference to symbol 'Property:InstallType' in section 'Fragment:'.
나는 이유를 모른다. 내가 뭔가 잊었 니? : -/
나는 WiX에 상당히 익숙하며 어제 만 골라왔다. 어떤 도움이라도 대단히 감사 할 것입니다.
나는 Wix 3.5.2415.0을 사용하고 있습니다.
작품을, 감사합니다! 내가 읽은 튜토리얼에는 그 내용이 언급되어 있지 않으며, 속성은 태그로 자동 생성되었다고 가정합니다. –
잘 작동합니다. 일반적으로 이와 같은 오류가 발생하면 참조 할 엔터티를 정의해야합니다. –
감사합니다. 이미 속성을 정의했지만 기본값을 지정하지 않았습니다. 그것은 모든 차이를 만들었습니다. – bigfoot