Wix Burn - custom template

2019-02-26 16:34发布

Is there a way to change that redish CD picture in the installer?

Wix bundle app

Here's the code of the Burn project:

<?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>

Thanks!

标签: wix
3条回答
We Are One
2楼-- · 2019-02-26 17:23

Yes, you can use a custom theme. Here is an example from https://github.com/frederiksen/Classic-WiX-Burn-Theme:

enter image description here

查看更多
Explosion°爆炸
3楼-- · 2019-02-26 17:24

Yes, you will want to set the LogoFile. Inside of BootstrapperApplicationRef add

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

More info on WixStandardBootstrapperApplication

查看更多
放荡不羁爱自由
4楼-- · 2019-02-26 17:26

To clarify Rick Bowerman's answer above, you need to use the extended XML schema in order to use WixStandardBootstrapperApplication and remove/replace the icon. Here is a more elaborate example:

<?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>

Note that you have to specify something for the LogoFile attribute. It cannot be empty, and leaving the attribute out will restore the horror.

查看更多
登录 后发表回答