<!-- this is a WIX spec file -->
<!-- it is autogenerated by the xmake build system. -->
<!-- do not edit by hand. -->
<?define PackageName = "${PACKAGE_NAME}"?>
<?define PackageTitle = "${PACKAGE_TITLE}"?>
<?define PackageDescription = "${PACKAGE_DESCRIPTION}"?>
<?define PackageAuthor = "${PACKAGE_AUTHOR}"?>
<?define PackageMaintainer = "${PACKAGE_MAINTAINER}"?>
<?define PackageHomepage = "${PACKAGE_HOMEPAGE}"?>
<?define PackageCoypright = "${PACKAGE_COPYRIGHT}"?>
<?define PackageCompany = "${PACKAGE_COMPANY}"?>
<?define PackageIconFile = "${PACKAGE_ICONFILE}"?>
<?define PackageLicense = "${PACKAGE_LICENSE}"?>
<?define PackageLicenseFile = "${PACKAGE_LICENSEFILE}"?>
<?define PackageVersion = "${PACKAGE_VERSION}"?>

<?define UpgradeCode = "${PACKAGE_WIX_UPGRADECODE}"?>

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
    <Package Language="1033" Manufacturer="$(PackageCompany)" Name="$(PackageName)" UpgradeCode="$(UpgradeCode)" Version="$(PackageVersion)">
        <MajorUpgrade DowngradeErrorMessage="A later version of $(PackageName) is already installed. Setup will now exit." />
        <?if $(PackageIconFile) != "" ?>  
            <Icon Id="Icon" SourceFile="$(PackageIconFile)"/>
            <Property Id="ARPPRODUCTICON" Value="Icon" />
            <WixVariable Id="WixUIBannerBmp" Value="$(PackageIconFile)" />
            <!-- Disable for now, because this is not pretty if the icon has a small resolution -->
            <!-- <WixVariable Id="WixUIDialogBmp" Value="$(PackageIconFile)" /> -->
        <?endif ?>
        <MediaTemplate EmbedCab="true" />
        <WixVariable Id="WixUILicenseRtf" Value="$(PackageLicenseFile)" />
        <ui:WixUI Id="WixUI_FeatureTree" InstallDirectory="INSTALLFOLDER" />
        <StandardDirectory Id="ProgramFiles6432Folder">
            <Directory Id="INSTALLFOLDER" Name="$(PackageName)"/>
        </StandardDirectory>
        ${PACKAGE_WIX_CMDS}
    </Package>
</Wix>
