【问题标题】:Wix *.msi installer Icon and logosWix *.msi 安装程序图标和徽标
【发布时间】:2014-12-29 06:28:35
【问题描述】:

据此 http://wix.tramontana.co.hu/tutorial/user-interface/ui-wizardry

我已经创建了以下代码

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="Installer" Language="1033" Version="0.0.1.4" Manufacturer="my" UpgradeCode="*">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate EmbedCab="yes" />
    <!--icon for Add/Remove Programs-->
    <Icon Id="WINDOWS.ico" SourceFile="..\WINDOWS.ico" />
    <Property Id="ARPPRODUCTICON" Value="WINDOWS.ico" />
    <Feature Id="ProductFeature" Title="Installer" Level="1" Description="The complete installation" Display="expand" ConfigurableDirectory="INSTALLFOLDER">
      <ComponentRef Id="ProgramMenuDir" />
      <ComponentGroupRef Id="ExportReleaseComponentGroup" />          
    </Feature>
    <!--Internal tools-->
    <Feature Id="Internal_Calibration_tools" Title="Internal Calibration tools" Level="1000" Description="Internal tools">
      <ComponentGroupRef Id="group_Internal_Calibration_tools" />
    </Feature>
    <UIRef Id="WixUI_Mondo"></UIRef>
    <UIRef Id="WixUI_ErrorProgressText" />
    <WixVariable Id="WixUIExclamationIco" Value="..\Import\WINDOWS_32px.ico" />
    <WixVariable Id="WixUIInfoIco" Value="..\Import\WINDOWS_32px.ico" />
    <WixVariable Id="WixUINewIco" Value="..\Import\WINDOWS_16px.ico" />
    <WixVariable Id="WixUIUpIco" Value="..\Import\WINDOWS_16px.ico" />
  </Product>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFiles64Folder">

但是我还是看不到图标的变化。


在引导程序中一切正常,所有图标都已更改。

【问题讨论】:

    标签: wix windows-installer wix3.5 wix3.6 wix3.7


    【解决方案1】:

    你应该添加这个。应添加整个顶部横幅图像。

    <WixVariable Id="WixUIBannerBmp" Value="..\images\banner.bmp" />
    

    确保其大小正确,并且必须是位图图像。

    参考:http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html

    【讨论】:

      【解决方案2】:

      如果你想改变顶部横幅的图像,你需要创建一个 493 × 58 的位图,它将作为对话标题和文本的背景层。

      所以在 Product 元素中添加这一行:

      <WixVariable Id="WixUIBannerBmp" Value="$(var.ImagesDir)\[YOUR BITMAP HERE].bmp" />
      

      您会找到更改默认 WIX UI here 所需的其他 WixVariables

      【讨论】:

        猜你喜欢
        • 2021-07-25
        • 1970-01-01
        • 1970-01-01
        • 2011-12-01
        • 2013-11-22
        • 1970-01-01
        • 2021-05-03
        • 2015-04-09
        • 1970-01-01
        相关资源
        最近更新 更多