<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="MySQL Connector J" Language="1033" Version="$(var.ProductVersion)" Manufacturer="Oracle Corporation" UpgradeCode="a887f346-5f02-4cf1-bb85-bf34b4c5f248">
    <Package InstallerVersion="200" Compressed="yes" />
    <Upgrade Id="574f7b74-d753-4965-995d-2de6a79afd01">
      <UpgradeVersion OnlyDetect="no" 
        Minimum="6.0.0"
        IncludeMinimum="yes"
        Maximum="8.0.12"
        IncludeMaximum="yes"
        Property="OLDERVERSIONBEINGUPGRADED_OLD"/>
    </Upgrade>
    <Upgrade Id="a887f346-5f02-4cf1-bb85-bf34b4c5f248">
      <UpgradeVersion OnlyDetect="no"
        Minimum="8.0.13"
        IncludeMinimum="yes"
        Maximum="$(var.ProductVersion)" 
        Property="OLDERVERSIONBEINGUPGRADED" 
        IncludeMaximum="yes" />
    </Upgrade>
    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="MySQL" Name="MySQL">
          <Directory Id="INSTALLLOCATION" Name="MySQL Connector J 8.0">
            <!-- Components Autogenerated using the WiX tool named Heat.  See the Project properties for cmd line. -->
          </Directory>
        </Directory>
      </Directory>
    </Directory>
    <Feature Id="ProductFeature" Title="wix_solution" Level="1">
      <ComponentGroupRef Id="ConnJZipContents"/>
    </Feature>
    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
    </InstallExecuteSequence>
  </Product>
</Wix>
