How to create a boot application without a license agreement step

I created a WiX Bootstrapper project. When the installation starts, it provides a license agreement.

I want to create a bootstrapper without this step, since I do not want it to show any license agreement. Can this be done? If so, how?

+43
wix
Jun 07 '13 at 7:26
source share
2 answers

Assuming you are using the standard Bootstrapper WiX application, your current BootstrapperApplicationRef might look like this:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> 

WixStandardBootstrapperApplication has three options, as described in docs . HyperlinkLicense is the easiest. It has a license link on the welcome page instead of the license page. It allows you to specify an empty URL for the license, in which case it will not display the link. For example,

 <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> <bal:WixStandardBootstrapperApplication LicenseUrl="" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" /> </BootstrapperApplicationRef> 
+48
Jun 14 '13 at 18:30
source share

I used a custom theme to get rid of the license agreement step. You can see a brief overview of how to do this here .

Actions:

  • Download the WiX 3.11 source, which you can download here at the bottom of the page.

  • Extract it to the folder and add HyperlinkTheme.xml and HyperlinkTheme.wxl to your bootstrapper project. Files can be found in \src\ext\BalExtension\wixstdba\Resources regarding where they were extracted.

  • Modify the boot definition as follows:

     <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> <bal:WixStandardBootstrapperApplication LicenseUrl="" ThemeFile="HyperlinkTheme.xml" LocalizationFile="HyperlinkTheme.wxl" SupressOptionsUI="yes" /> </BootstrapperApplicationRef> 
  • Now open the theme file and change the page with the Name attribute set to Install , and comment out or uncheck the box and the hyperlink:

     <Page Name="Install"> <!--<Hypertext Name="EulaHyperlink" X="11" Y="121" Width="-11" Height="51" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallLicenseLinkText)</Hypertext> <Checkbox Name="EulaAcceptCheckbox" X="-11" Y="-41" Width="260" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallAcceptCheckbox)</Checkbox>--> <Button Name="OptionsButton" X="-171" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">#(loc.InstallOptionsButton)</Button> <Button Name="InstallButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallInstallButton)</Button> <Button Name="WelcomeCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallCloseButton)</Button> </Page> 

After that, your bootloader should now look like this: Bootstrapper without the license agreement.

I would personally change the subject so that it does not look so uncomfortable with all this empty space.

+23
Nov 22 '13 at 15:23
source share



All Articles