<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>Richter Technology Remote Agent</title>
    <organization>com.richtertechnology</organization>
    <options customize="never" require-scripts="true" hostArchitectures="x86_64,arm64"/>
    <domains enable_localSystem="true" enable_anywhere="false" enable_currentUserHome="false"/>
    <allowed-os-versions>
        <os-version min="10.10"/>
    </allowed-os-versions>
    <installation-check script="rtInstallationCheck()"/>
    <script><![CDATA[
function rtInstallationCheck() {
    var v = system.version.ProductVersion;
    if (system.compareVersions(v, '10.10') < 0) {
        my.result.type = 'Fatal';
        my.result.title = 'This Mac is too old for the Richter Technology Remote Agent';
        my.result.message = 'This Mac runs macOS ' + v + '. The Remote Agent needs OS X 10.10 Yosemite or later. ' +
            'Most Macs made in 2009-2010 can be upgraded to macOS 10.13 High Sierra at no cost. ' +
            'Please contact your Richter Technology technician.';
        return false;
    }
    return true;
}
    ]]></script>
    <choices-outline>
        <line choice="default">
            <line choice="com.richtertechnology.remoteagent"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.richtertechnology.remoteagent" visible="false" title="Richter Technology Remote Agent">
        <pkg-ref id="com.richtertechnology.remoteagent"/>
    </choice>
    <pkg-ref id="com.richtertechnology.remoteagent" version="4.0.3" onConclusion="none" installKBytes="26768">#base.pkg</pkg-ref>
</installer-gui-script>
