The WiX Standard Bootstrapper Application supports displaying a license in RTF format and/or linking to a license file either locally or on the web. Binder variables are used to override the default values. There are different binder variables depending which variation of the WiX Standard Bootstrapper Application is used.
When using the standard bootstrapper application that displays the RTF license, it is highly recommended that the license is overridden because the default uses "Lorem ipsum" placeholder text. The following example uses a license.rtf file found in the "path\to" folder relative to the linker bind paths.
<?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>
When using the bootstrapper application that displays the license as a hyperlink, the path or URL to the license is optional. If it is not provided the link and accept license checkbox is not displayed, providing an "unlicensed" installation experience. The following example links to a license page on the internet.
<?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.HyperlinkLicense"> <bal:WixStandardBootstrapperApplication LicenseUrl="http://example.com/license.html" LogoFile="path\to\customlogo.png" /> </BootstrapperApplicationRef> <Chain> ... </Chain> </Bundle> </Wix>