这是我第一次自定义安装程序的UI,所以我对此很陌生。
我想在WixUI_Mondo对话框的LicenseAgreementDlg和SetupTypeDlg之间放置一个自定义对话框。 安装过程中不会显示自定义对话框,我不确定原因。
该对话框位于文件DbDialogs.wxs:
中<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI>
<Dialog Id="DatabaseInformationDlg" Width="370" Height="270" Title="[ProdictName] [Setup]" NoMinimize="yes">
[...]
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
<Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&Next">
[...]
<Publish Event="NewDialog" Value="SetupTypeDlg">1</Publish>
</Control>
[...]
</Dialog>
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="DatabaseInformationDlg">1</Publish>
<Publish Dialog="SetupTypeDlg" Control="Back" Event="NewDialog" Value="DatabaseInformationDlg">1</Publish>
</UI>
</Fragment>
</Wix>
产品引用WixUI_Mondo对话框,以创建基本对话框顺序:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" [...] />
[...]
<UIRef Id="WixUI_Mondo" />
[...]
</Product>
</Wix>
有什么不对/遗失?