您需要做的就是在WIX脚本中添加它,它将在安装之前为您提供WelcomeDlg并显示安装进度,然后显示Exit对话框.不要忘记将WixUIExtension.dll添加到您的引用.
<UI Id="UserInterface"> <Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" /> <Property Id="WixUI_Mode" Value="Custom" /> <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="9" Bold="yes" /> <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> <DialogRef Id="ProgressDlg" /> <DialogRef Id="ErrorDlg" /> <DialogRef Id="FilesInUse" /> <DialogRef Id="FatalError" /> <DialogRef Id="UserExit" /> <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="EndDialog" Value="Return" Order="2"></Publish> </UI> <UIRef Id="WixUI_Common" />