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

时间:2018-02-09 19:46:34

标签: wix

在Wix向导中,这里有一个红色CD图标:

enter image description here

在这里:

enter image description here

你如何改变它?

我尝试添加:

   if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
      setTaskDescription(
          new ActivityManager.TaskDescription(
              title,  //or null for default title
              R.drawable.task_icon,
              color // or null for default color                    
      )  
  }

但它没有效果。

2 个答案:

答案 0 :(得分:2)

红色CD图标是WixUIExtension中使用的位图的一部分。在WixUIExtension的源代码中,您可以查看它使用的bitmaps。来自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" />

答案 1 :(得分:1)

IsWiX拥有项目模板,可以从WiX的相当简洁的项目模板中取消。开箱即用,您将获得一个Code and Resources文件夹和一系列WiX片段,这些片段定义标准内容,例如MajorUpgrades,常见的AppSearch / LaunchConditions,以及通过简单地取消注释XML行来轻松注入自定义对话框的WiXUI。

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

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