<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>Dinfio</title>
    <background mime-type="image/png" file="banner.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.6.0') &gt;= 0)) {
        my.result.title = 'Unable to install';
        my.result.message = 'Dinfio requires Mac OS X 10.6 or later.';
        my.result.type = 'Fatal';
        return false;
    }
    if(system.files.fileExistsAtPath('/Library/Dinfio/3.2/')) {
        my.result.title = 'Previous Installation Detected';
        my.result.message = 'A previous installation of Dinfio exists at /Library/Dinfio/3.2/. 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="Dinfio"/>
    </choices-outline>
    <choice id="Dinfio" title="Dinfio">
        <pkg-ref id="Dinfio.pkg"/>
    </choice>
    <pkg-ref id="Dinfio.pkg" auth="Root" packageIdentifier="org.Dinfio.3.2" version="3.2" installKBytes="11912">#Dinfio.pkg</pkg-ref>
    <pkg-ref id="Dinfio.pkg">
        <bundle-version/>
    </pkg-ref>
</installer-script>