<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>DataPM</title>
    <background mime-type="image/png" file="banner.png" scaling="proportional"/>
    <background-darkAqua 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"/>
    <license file="LICENSE.txt"/>
    <options customize="never" allow-external-scripts="no" hostArchitectures="x86_64,arm64"/>
    <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 = 'DataPM requires Mac OS X 10.6 or later.';
        my.result.type = 'Fatal';
        return false;
    }
    if(system.files.fileExistsAtPath('/Library/DataPM/0.32.44/')) {
        my.result.title = 'Previous Installation Detected';
        my.result.message = 'A previous installation of DataPM exists at /Library/DataPM/0.32.44/. This installer will remove the previous installation prior to installing.';
        my.result.type = 'Warning';
        return false;
    }
    return true;
}
    </script>
    <choices-outline>
        <line choice="DataPM"/>
    </choices-outline>
    <choice id="DataPM" title="DataPM">
        <pkg-ref id="DataPM.pkg"/>
    </choice>
    <pkg-ref id="DataPM.pkg" auth="Root" packageIdentifier="org.DataPM.0.32.44" version="0.32.44" installKBytes="190887">#DataPM.pkg</pkg-ref>
    <pkg-ref id="DataPM.pkg">
        <bundle-version/>
    </pkg-ref>
</installer-script>