<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <pkg-ref id="us.zoom.pkg.videomeeting"/>
    <title>Zoom Workplace</title>
    <options hostArchitectures="x86_64,arm64"/>
    <options customize="never"/>
    <domains enable_currentUserHome="true" enable_localSystem="true"/>
    <options customLocation="Applications" customLocationAllowAlternateVolumes="true"/>
    <options allow-external-scripts="false"/>
    <welcome file="Welcome.rtf"/>
    <!--    
    <readme file="ReadMe.rtf"/>
-->
    <background file="background.png" scaling="proportional" alignment="bottomleft"/>
    <options minOSVersion="10.15"/>
    <allowed-os-versions>
        <os-version min="10.15"/>
    </allowed-os-versions>
    <!-- Installation check script for clear error message -->
    <installation-check script="installCheck()"/>
    <script>
    function installCheck() {
        if (system.compareVersions(system.version.ProductVersion, '10.15') &lt; 0) {
            my.result.title = 'Cannot Install';
            my.result.message = 'Zoom Workplace requires macOS 10.15 (Catalina) or later. Your current macOS version is ' + system.version.ProductVersion + '.';
            my.result.type = 'Fatal';
            return false;
        }
        return true;
    }
    </script>
    <pkg-ref id="us.zoom.pkg.videomeeting">
        <must-close>
            <app id="us.zoom.xos"/>
        </must-close>
        <bundle-version/>
    </pkg-ref>
    <choices-outline>
        <line choice="default">
            <line choice="us.zoom.pkg.videomeeting"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="us.zoom.pkg.videomeeting" visible="false">
        <pkg-ref id="us.zoom.pkg.videomeeting"/>
    </choice>
    <pkg-ref id="us.zoom.pkg.videomeeting" version="7.0.5.81138" onConclusion="none" installKBytes="126081" updateKBytes="0">#zoomus.pkg</pkg-ref>
    <product version="7.0.5.81138"/>
</installer-gui-script>