<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <title>Avast Passwords</title>
    <welcome file="intro.html" mime-type="text/html"/>
    <background alignment="bottomleft" file="background.pdf" mime-type="application/pdf"/>
    <allowed-os-versions>
        <os-version min="10.11"/>
    </allowed-os-versions>
    <installation-check script="dontDowngrade()"/>
    <script>
    function dontDowngrade() {
        var bundle = system.files.bundleAtPath('/Applications/Avast Passwords.app');
        if (!bundle) {
            return true;
        }
        var bundleVersion = bundle['CFBundleVersion'];
        if (!bundleVersion) {
            return true;
        }
        if (system.compareVersions(bundleVersion, '4342') &gt; 0) {
            if (typeof(my.result) != 'undefined') {
                my.result.type = 'Fatal';
                my.result.title = system.localizedString('version_downgrade.title');
                my.result.message = system.localizedString('version_downgrade.text');
            }
            return false;
        }
        return true;
    }
    </script>
    <!-- Entries generated by running pkgbuild with the analyse flag -->
    <pkg-ref id="com.avast.passwords.pkg.application">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.6.5" CFBundleVersion="4342" id="com.avast.passwords.Passwords" path="Avast Passwords.app"/>
        </bundle-version>
    </pkg-ref>
    <options customize="never" require-scripts="false"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.avast.passwords.pkg.application"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <!-- Application -->
    <choice id="com.avast.passwords.pkg.application" visible="false">
        <pkg-ref id="com.avast.passwords.pkg.application"/>
    </choice>
    <pkg-ref id="com.avast.passwords.pkg.application" onConclusion="none" version="2.6.5" installKBytes="88514">#Application.pkg</pkg-ref>
</installer-gui-script>