2014-02-20 83 views
3

如何在WIX Bootstrapper項目中添加自己的許可證文件。 我有一個WIX Bootstrapper項目,安裝了一系列MSI,但我想在安裝啓動時顯示自己的許可證文件。在WIX Bootstrapper項目中添加自己的許可協議

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

回答

8

如果您使用的是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以及命名空間聲明。

+0

是的,適合我。 謝謝.. :) – User