<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>IntraHouse</title>
    <license file="license.txt"/>
    <options customize="never" allow-external-scripts="no"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <installation-check script="installCheck();"/>
    <script>
function installCheck() {
    if(system.files.fileExistsAtPath('/Library/intrascada/')) {
        my.result.title = 'Конфликт пакетов';
        my.result.message = 'Обнаружен конфликт с пакетом IntraSCADA, необходимо удалить конфликтующий пакет и продолжить установку!';
        my.result.type = 'Fatal';
        return false;
    }
    return true;
}
    </script>
    <choices-outline>
        <line choice="intrahouse"/>
    </choices-outline>
    <choice id="intrahouse" title="intrahouse">
        <pkg-ref id="intrahouse.pkg"/>
    </choice>
    <pkg-ref id="intrahouse.pkg" auth="Root" packageIdentifier="&quot;ru.intrahouse.server&quot;" version="&quot;5.19.10&quot;" installKBytes="134803" updateKBytes="0">#intrahouse.pkg</pkg-ref>
    <pkg-ref id="intrahouse.pkg">
        <bundle-version/>
    </pkg-ref>
</installer-script>