<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2019, 2020, Oracle and/or its affiliates.

  This program is free software; you can redistribute it and/or modify it under
  the terms of the GNU General Public License, version 2.0, as published by the
  Free Software Foundation.

  This program is also distributed with certain software (including but not
  limited to OpenSSL) that is licensed under separate terms, as designated in a
  particular file or component or in included license documentation. The
  authors of MySQL hereby grant you an additional permission to link the
  program and your derivative works with the separately licensed software that
  they have included with MySQL.

  Without limiting anything contained in the foregoing, this file, which is
  part of MySQL Connector/J, is also subject to the Universal FOSS Exception,
  version 1.0, a copy of which can be found at
  http://oss.oracle.com/licenses/universal-foss-exception.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
  for more details.

  You should have received a copy of the GNU General Public License along with
  this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
-->
<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>
