<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>The-Widener</title>
    <background mime-type="image/png" file="banner.png" scaling="proportional" alignment="bottomleft"/>
    <background-darkAqua mime-type="image/png" file="banner.png" scaling="proportional" alignment="bottomleft"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <license file="LICENSE.txt"/>
    <options customize="always" allow-external-scripts="no" rootVolumeOnly="true" hostArchitectures="x86_64,arm64"/>
    <domains enable_localSystem="true"/>
    <installation-check script="installCheck();"/>
    <script>
function installCheck() {
    if(!(system.compareVersions(system.version.ProductVersion, '10.6.0') &gt;= 0)) {
        my.result.title = 'Unable to install';
        my.result.message = 'The-Widener requires Mac OS X 10.6 or later.';
        my.result.type = 'Fatal';
        return false;
    }
    <!-- if(system.files.fileExistsAtPath('/Applications/Master\ Tones/The-Widener/1.0.0/')) {
        my.result.title = 'Previous Installation Detected';
        my.result.message = 'A previous installation of The-Widener exists at /Applications/The-Widener/. This installer will remove the previous installation prior to installing. Please back up any data before proceeding.';
        
        my.result.type = 'Warning';
        return false;
    } -->
        
    return true;
}
    </script>
    <choices-outline>
        <line choice="VST3"/>
        <line choice="AU"/>
        <line choice="AAX"/>
    </choices-outline>
    <choice id="VST3" title="VST3">
        <pkg-ref id="The-WidenerVST.pkg"/>
    </choice>
    <choice id="AU" title="AU">
        <pkg-ref id="The-WidenerAU.pkg"/>
    </choice>
    <choice id="AAX" title="AAX">
        <pkg-ref id="The-WidenerAAX.pkg"/>
    </choice>
    <pkg-ref id="The-WidenerVST.pkg" auth="Root" packageIdentifier="org.The-Widener.1.0.0_2" version="1.0.0" installKBytes="14043">#The-Widener.pkg</pkg-ref>
    <pkg-ref id="The-WidenerAU.pkg" auth="Root" packageIdentifier="org.The-Widener.1.0.0_1" version="1.0.0" installKBytes="13998">#The-Widener_AU.pkg</pkg-ref>
    <pkg-ref id="The-WidenerAAX.pkg" auth="Root" packageIdentifier="org.The-Widener.1.0.0_3" version="1.0.0" installKBytes="14327">#The-Widener_AAX.pkg</pkg-ref>
    <pkg-ref id="The-WidenerVST.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheWidener" path="Library/Audio/Plug-Ins/VST3/Master Tones/The-Widener.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="The-WidenerAU.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheWidener" path="Library/Audio/Plug-Ins/Components/The-Widener.component"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="The-WidenerAAX.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheWidener" path="Library/Application Support/Avid/Audio/Plug-Ins/The-Widener.aaxplugin"/>
            <bundle CFBundleShortVersionString="5.4.1 GM (b3455, 933b85fce7)" CFBundleVersion="5.4.1.3455" id="com.paceap.eden.dsig.bundle" path="Library/Application Support/Avid/Audio/Plug-Ins/The-Widener.aaxplugin/Contents/__Pace_Eden.bundle"/>
        </bundle-version>
    </pkg-ref>
</installer-script>