<?xml version="1.0"?>
<installer-gui-script minSpecVersion="1">
    <title>Rapid7-insight-agent</title>
    <background file="background.png" alignment="topleft" mime-type="image/png"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <license file="license.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, '11.0.0') &gt;= 0)) {
            my.result.title = 'Unable to install';
            my.result.message = 'rapid7 requires Mac OS X 11 or later.';
            my.result.type = 'Fatal';
            return false;
        }
        if(system.files.fileExistsAtPath('/opt/rapid7/')) {
            my.result.title = 'Previous Installation Detected';
            my.result.message = 'A previous installation of rapid7-bundle exists at /opt/rapid7/. This installer will remove the previous installation prior to installing.';
            my.result.type = 'Warning';
            return false;
        }
        return true;
      }
  </script>
    <!-- Generated by productbuild - - synthesize -->
    <pkg-ref id="com.rapid7.rapid7-insight-agent">
        <bundle-version>
            <bundle CFBundleVersion="1" id="com.rapid7.ESService" path="ir_agent/components/insight_agent/4.0.14.41/lib/_escollector/ESCollector.framework/Versions/A/XPCServices/ESService.xpc"/>
            <bundle CFBundleVersion="1" id="com.rapid7.ESCollector" path="ir_agent/components/insight_agent/4.0.14.41/lib/_escollector/ESCollector.framework"/>
        </bundle-version>
    </pkg-ref>
    <options customize="never" require-scripts="false" hostArchitectures="arm64"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.rapid7.rapid7-insight-agent"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.rapid7.rapid7-insight-agent" visible="false">
        <pkg-ref id="com.rapid7.rapid7-insight-agent"/>
    </choice>
    <pkg-ref id="com.rapid7.rapid7-insight-agent" version="4.0.14.41" onConclusion="none" installKBytes="153951">#rapid7-insight-agent-core.pkg</pkg-ref>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
</installer-gui-script>