繁体   English   中英

Wix Burn - 自定义模板

[英]Wix Burn - custom template

有没有办法在安装程序中更改该红色CD图片?

Wix捆绑应用

这是Burn项目的代码:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
    <Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="VilmosNagy" UpgradeCode="844c755f-f02b-4dd3-8b9c-af2498f3128c">
        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>
      <MsiPackage SourceFile="..\Setup\bin\Release\Setup.msi" />
    </Chain>
    </Bundle>
</Wix>

谢谢!

是的,您可以使用自定义主题。 以下是https://github.com/frederiksen/Classic-WiX-Burn-Theme的示例:

在此输入图像描述

是的,您需要设置LogoFile。 在BootstrapperApplicationRef里面添加

<WixStandardBootstrapperApplication LogoFile="path to your logo.bmp"/>

有关WixStandardBootstrapperApplication的更多信息

为了澄清Rick Bowerman上面的答案,您需要使用扩展的XML模式才能使用WixStandardBootstrapperApplication并删除/替换图标。 这是一个更详细的例子:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
...
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
      <bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="blank.png" />
    </BootstrapperApplicationRef>
    <Chain>
        <MsiPackage SourceFile="$(var.Msi_x86)" />
        <MsiPackage InstallCondition='VersionNT64' SourceFile="$(var.Msi_x64)" />
    </Chain>
...
</Wix>

请注意,您必须为LogoFile属性指定一些内容。 它不能为空,将属性保留下来会恢复恐怖。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM