1、UAC下不能安装,perUser改成perMachine
InstallPrivileges="elevated" AdminImage="yes" InstallScope="perMachine"
2、背景图片和语言包放到 build\projects\插件目录 下面
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
3、应用语言包的方法
在FireBreath\cmake\Win.cmake中
行228:set (WIX_LINK_FLAGS ${WIX_LINK_FLAGS} -cultures:zh-cn -loc "WixUI_zh-cn.wxl" -sw1076)
4、去掉EULA许可协议界面
<UI Id="UserInterface">
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="WixUI_Mode" Value="Custom" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<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" />
<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>
</UI>
<UIRef Id="WixUI_Common" />