如何更改 WiX 上的红色 cd 图标?

How do you change the red-cd icon on WiX?

在 Wix 向导中,此处有一个红色 CD 图标:

这里:

怎么改?

我尝试添加:

<WixVariable Id="WixUIInfoIco" Value="Dashman-setup-icon.bmp" />
<WixVariable Id="WixUIExclamationIco" Value="Dashman-setup-icon.bmp" />

但是没有效果。

红色 CD 图标是 WixUIExtension 中使用的位图的一部分。在 WixUIExtension, you can view the bitmaps it uses. From UI Wizardy 的源代码中:

<!-- WixUIBannerBmp 493 by 58 pixels,
     this bitmap will appear at the top of all
     but the first page of the installer-->
<WixVariable Id="WixUIBannerBmp" Value="path\banner.bmp" />

<!-- WixUIDialogBmp 493 by 312 pixels,
     this bitmap will appear on
     the first page of the installer.-->
<WixVariable Id="WixUIDialogBmp" Value="path\dialog.bmp" />

IsWiX 具有项目模板,可以从 WiX 中相当简洁的项目模板中汲取灵感。开箱即用,你会得到一个代码和资源文件夹和一系列 WiX 片段,这些片段定义了标准的东西,例如 MajorUpgrades、common AppSearch/LaunchConditions 和引入 WiXUI,允许通过简单地轻松注入自定义对话框取消注释一行 XML.

https://github.com/iswix-llc/iswix/tree/master/Application/IsWiXNewAddIn/MSISolutionTemplate/SetupProjectTemplate

作为项目协调员,我可能有偏见,但我刚刚完成了一堆 UI 以前我在 InstallShield 中只敢做的工作。