<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <?include ..\includes\Preprocessors.wxi?>
  
  <Fragment>
    <UI Id="UI.dialog_license_agreement">
      <Dialog Id="DialogViewLicenseAgreement" Width="375" Height="220" Title="[ProductName]">
        <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="375" Height="220" TabSkip="no" Text="backdrop.bmp" />
        <Control Id="Title" Type="Text" X="55" Y="14" Width="300" Height="57" Transparent="yes" NoPrefix="yes">
          <Text>[BigFont]End-User License Agreement</Text>
        </Control>
        <Control Id="SubTitle" Type="Text" X="55" Y="37" Width="300" Height="15" Transparent="yes" NoPrefix="yes">
          <Text>[SubTitleFont]Please read the following license agreement carefully!</Text>
        </Control>
        <Control Id="AgreementText" Type="ScrollableText" X="10" Y="58" Width="355" Height="118" Sunken="yes" TabSkip="no" >
          <Text SourceFile="licenses\$(var.Product)\$(var.LicenseFile)"></Text>
        </Control>
        <Control Id="Back" Type="PushButton" X="187" Y="193" Width="56" Height="17" Text="[Button_Back]">
          <Publish Event="NewDialog" Value="DialogWelcome">1</Publish>
        </Control>
        <Control Id="Agree" Type="PushButton" X="242" Y="193" Width="56" Height="17" Default="yes" Text="[Button_Agree]">
          <?ifdef EiffelStudio?>
            <!-- EiffelStudio actions -->
            <?ifdef Enterprise?>
              <!-- Have user register -->
              <Publish Event="NewDialog" Value="DialogRegister">1</Publish>
            <?else?>
              <Publish Event="NewDialog" Value="DialogSelectFolder">1</Publish>
            <?endif?>
          <?endif?>          
        </Control>
        <Control Id="Cancel" Type="PushButton" X="309" Y="193" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
          <Publish Event="SpawnDialog" Value="PromptCancelInstall">1</Publish>
        </Control>
      </Dialog>
    </UI>
  </Fragment>
</Wix>
