<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>macOS driver for the UPort 2000 Series</title>
    <license file="COPYING-MOXA.rtf"/>
    <readme file="important.txt"/>
    <background mime-type="image/png" file="banner.png" scaling="proportional"/>
    <background-darkAqua mime-type="image/png" file="banner_dark.png" scaling="proportional"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <options customize="never" allow-external-scripts="no"/>
    <domains enable_localSystem="true"/>
    <installation-check script="installCheck();"/>
    <script>
function installCheck() {
    if(!(system.compareVersions(system.version.ProductVersion, '10.11.0') &gt;= 0)) {
        my.result.title = 'Unable to install';
        my.result.message = 'UPort2000 requires macOS 10.11 or later.';
        my.result.type = 'Fatal';
        return false;
    }
    if(system.files.fileExistsAtPath('/Library/UPort2000/2.0/')) {
        my.result.title = 'Previous Installation Detected';
        my.result.message = 'A previous installation of UPort2000 exists at /Library/UPort2000/2.0/. 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="default">
            <line choice="UPort2000"/>
            <line choice="UPort2000-1"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="UPort2000" title="UPort2000">
        <pkg-ref id="UPort2000_kext.pkg"/>
    </choice>
    <pkg-ref id="UPort2000_kext.pkg" auth="Root" packageIdentifier="com.moxa.uport.UPort2000.2.0.kext" version="2.0" installKBytes="521">#UPort2000_kext.pkg</pkg-ref>
    <choice id="UPort2000-1" title="UPort2000">
        <pkg-ref id="UPort2000_lib.pkg"/>
    </choice>
    <pkg-ref id="UPort2000_lib.pkg" auth="Root" packageIdentifier="com.moxa.uport.UPort2000.2.0.lib" version="2.0" installKBytes="58">#UPort2000_lib.pkg</pkg-ref>
    <pkg-ref id="UPort2000_kext.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.0" CFBundleVersion="1" id="com.apple.xcode.dsym.com.moxa.uport.mxu2000" path="mxuport2000.kext.dSYM"/>
            <bundle CFBundleShortVersionString="2.0" CFBundleVersion="1" id="com.moxa.uport.mxu2000" path="mxuport2000.kext"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="UPort2000_lib.pkg">
        <bundle-version/>
    </pkg-ref>
</installer-script>