【问题标题】:Adding Your own license agreement in WIX Bootstrapper Project在 WIX Bootstrapper 项目中添加您自己的许可协议
【发布时间】:2014-03-20 23:48:19
【问题描述】:

如何在 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>

【问题讨论】:

    标签: wix bootstrapper burn wix3.7


    【解决方案1】:

    如果您使用WixStandardBootstrapperApplication.RtfLicense 通用引导程序应用程序,您只需将BootstrapperApplicationRef/bal:WixStandardBootstrapperApplication/@LicenseFile 设置为捆绑包中的RTF 文件的名称。

    the documentation 的例子是:

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

    请注意,您需要在项目中添加对 WixBalExtension 的引用以及命名空间声明。

    【讨论】:

      猜你喜欢
      • 2011-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多