<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <title>ITSPlatform</title>
    <allowed-os-versions>
        <os-version min="10.5"/>
    </allowed-os-versions>
    <domains enable_localSystem="true"/>
    <options rootVolumeOnly="true" customize="never"/>
    <pkg-ref id="com.ITSPlatform.ITSPlatform" auth="Root">
        <bundle-version/>
    </pkg-ref>
    <options customize="never" require-scripts="false"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.ITSPlatform.ITSPlatform"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.ITSPlatform.ITSPlatform" visible="false">
        <pkg-ref id="com.ITSPlatform.ITSPlatform"/>
    </choice>
    <pkg-ref id="com.ITSPlatform.ITSPlatform" auth="Root" version="3.1.4.2718" onConclusion="none" installKBytes="116697">#ITSPlatform.pkg</pkg-ref>
    <installation-check script="installation_check();"/>
    <script>
            function installation_check() {
                if (system.compareVersions(system.version.ProductVersion, '10.6') &lt; 0) {
                    my.result.title = 'Installation Failed';
                    my.result.message = 'ITSPlatform requires Mac OS X 10.6 or later.';
                    my.result.type = 'Fatal';
                    return false;
                }
                if(system.files.fileExistsAtPath("/opt/ITSPlatform")) {
                    my.result.title = 'Previous Installation Detected';
                    my.result.message = 'ITSPlatform already installed. Upgrade not supported for now. Uninstall previous version.';
                    my.result.type = 'Fatal';
                    return false;
                }
                return true;
            }
    </script>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="license.html" mime-type="text/html"/>
    <!-- <readme file="readme.html" mime-type="text/html"/> -->
    <!-- <conclusion file="conclusion.html" mime-type="text/html"/> -->
    <product version="3.1.4.2718"/>
</installer-gui-script>