在WIX Bootstrapper项目中添加您自己的许可协议

Use*_*ser 5 wix bootstrapper burn wix3.7

如何在WIX Bootstrapper项目中添加自己的许可证文件.我有一个WIX Bootstrapper项目,它安装了一系列MSI,但我想在安装开始时显示我自己的许可证文件.

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle Name="Biodentify 2014 Setup" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="4056d930-16b2-44eb-a861-16db566ae44c">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>
        <!-- TODO: Define the list of chained packages. -->
        <!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
  <!--<PackageGroupRef Id="BONJOUR"/>-->

  <MsiPackage  SourceFile=".\A.msi" Compressed="yes" />
  <MsiPackage  SourceFile=".\B.msi" Compressed="yes" />
  <MsiPackage  SourceFile=".\C.msi" Compressed="yes" />
  <MsiPackage SourceFile ="$(var.Setup.TargetPath)" Compressed ="yes" DisplayInternalUI="yes" />

    </Chain>
</Bundle>
Run Code Online (Sandbox Code Playgroud)

lc.*_*lc. 11

如果您使用的是WixStandardBootstrapperApplication.RtfLicense通用引导程序应用程序,则BootstrapperApplicationRef/bal:WixStandardBootstrapperApplication/@LicenseFile只需将该组件中的RTF文件的名称设置为该名称即可.

文档中的示例是:

<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Bundle>
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
      <bal:WixStandardBootstrapperApplication
        LicenseFile="path\to\license.rtf"
        LogoFile="path\to\customlogo.png" />
    </BootstrapperApplicationRef>

    <Chain>
      ...
    </Chain>
  </Bundle>
</Wix>
Run Code Online (Sandbox Code Playgroud)

请注意,您需要WixBalExtension在项目中添加引用以及名称空间声明.