<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <!-- Presentation -->
    <title>installer-window-title</title>
    <organization>com.microsoft</organization>
    <options customize="never" rootVolumeOnly="true" require-scripts="true"/>
    <license file="License.rtf"/>
    <background alignment="bottomleft" file="background.tiff" scaling="none"/>
    <allowed-os-versions>
        <os-version min="10.14"/>
    </allowed-os-versions>
    <installation-check script="InstallationCheck();"/>
    <script>
        function InstallationCheck()
        {
            var result;
            try {
                result = system.compareVersions(system.version.ProductVersion, '10.14') &gt;= 0;
            } catch (e) { }

            if (!result)
            {
                my.result.type = 'Fatal';
                my.result.title = system.localizedString('require-min-os-title');
                my.result.message = '';
            }

            return result;
        }
    </script>
    <!-- Installation -->
    <pkg-ref id="com.microsoft.SkypeForBusiness">
        <bundle-version>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.rdpkit" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/RDPKit.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.mbulocale" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/mbulocale.framework"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.microsoft.Model" path="Contents/Frameworks/Model.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.mbukernel" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/mbukernel.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.netlib" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/Netlib.framework"/>
            <bundle CFBundleShortVersionString="4.1.2" CFBundleVersion="59" id="net.hockeyapp.sdk.mac" path="Contents/Frameworks/HockeySDK.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.frameworks.wincrypto" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/WinCrypto.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.wlmkernel" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/WLMKernel.framework"/>
            <bundle CFBundleShortVersionString="16.30.32" CFBundleVersion="16.30.32.0000" id="com.microsoft.IPA" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.mbufont" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/MicrosoftFontLibrary.framework"/>
            <bundle CFBundleShortVersionString="4.0.10" id="com.microsoft.ADAL" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/ADAL.framework"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.microsoft.SkypeAppKit" path="Contents/Frameworks/SkypeAppKit.framework"/>
            <bundle CFBundleShortVersionString="15.18" CFBundleVersion="15.18" id="com.microsoft.mbuinstrument" path="Contents/Frameworks/Model.framework/Versions/A/Frameworks/IPA.framework/Versions/A/Frameworks/mbuinstrument.framework"/>
        </bundle-version>
    </pkg-ref>
    <choices-outline>
        <line choice="default">
            <line choice="com.microsoft.SkypeForBusiness"/>
        </line>
    </choices-outline>
    <!-- by Deafult install the application in tmp and during post install move it to applications folder -->
    <choice id="default" customLocation="/tmp/skypeforbusinesstemp/Skype for Business.app"/>
    <domains enable_localSystem="true" enable_anywhere="true" enable_currentUserHome="true"/>
    <choice id="com.microsoft.SkypeForBusiness" visible="false">
        <pkg-ref id="com.microsoft.SkypeForBusiness">
            <must-close>
                <app id="com.microsoft.SkypeForBusiness"/>
                <app id="com.microsoft.Lync"/>
                <app id="com.microsoft.Outlook"/>
            </must-close>
        </pkg-ref>
    </choice>
    <pkg-ref id="com.microsoft.SkypeForBusiness" version="16.30.32" onConclusion="none" installKBytes="124637">#SkypeForBusiness.pkg</pkg-ref>
    <product id="com.microsoft.SkypeForBusiness"/>
</installer-gui-script>