<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">

    <Bundle Name="psqlodbc"
		Version="$(var.VERSION)"
		Manufacturer="PostgreSQL Global Development Group"
		UpgradeCode="7f9f14ee-2f3a-4120-a300-ee3fbd585627">

	<BootstrapperApplicationRef
		Id="WixStandardBootstrapperApplication.RtfLicense">

		<bal:WixStandardBootstrapperApplication
			SuppressOptionsUI="yes"
			ShowVersion="yes"
			LicenseFile="..\lgpl.rtf"
		/>
	</BootstrapperApplicationRef>

    	<Chain>
	<!-- TODO: Define the list of chained packages. -->
<?if $(var.withRedist) = yes ?>
		<PackageGroupRef Id="vcredist"/>
<?endif ?>
<?ifndef var.INSTBASE ?>
<?define INSTBASE = ".."?>
<?endif ?>
		<MsiPackage SourceFile="$(var.INSTBASE)\x86\psqlodbc_x86.msi"
			DisplayInternalUI="$(var.withUI)" />
		<MsiPackage SourceFile="$(var.INSTBASE)\x64\psqlodbc_x64.msi"
		 	DisplayInternalUI="$(var.withUI)"
			InstallCondition="VersionNT64" />
    	</Chain>
    </Bundle>
</Wix>
