Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Your own license agreement in WIX Bootstrapper Project

How can i add my own license file in WIX Bootstrapper project. I have a WIX Bootstrapper project that installed a chain of MSIs but i want to display my own license file when setup starts.

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

like image 323
User Avatar asked Feb 20 '14 07:02

User


1 Answers

If you are using the WixStandardBootstrapperApplication.RtfLicense common bootstrapper application, all you have to do is set BootstrapperApplicationRef/bal:WixStandardBootstrapperApplication/@LicenseFile to the name of an RTF file in the bundle.

The example from the documentation is:

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

Note you will need to add a reference to WixBalExtension in your project as well as the namespace declaration.

like image 152
lc. Avatar answered Sep 28 '22 03:09

lc.