<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>InData 3.6.1</title>
    <license file="eula.html" mime-type="text/plain"/>
    <welcome file="welcome.txt" mime-type="text/plain"/>
    <background file="em_logo_mac_installer.png"/>
    <background-darkAqua file="em_logo_mac_installer.png"/>
    <installation-check script="initialChecks()"/>
    <options hostArchitectures="arm64,x86_64"/>
    <!-- List all component packages -->
    <pkg-ref id="com.emsoftware.InData" version="3.6.1" auth="none" packageIdentifier="com.emsoftware.indata" installKBytes="4975" updateKBytes="0">#InData.pkg</pkg-ref>
    <pkg-ref id="com.emsoftware.InFlow" version="3.6.1" auth="none" packageIdentifier="com.emsoftware.inflow" installKBytes="1129" updateKBytes="0">#InFlow.pkg</pkg-ref>
    <!-- List them again here. They can now be organized
         as a hierarchy if you want. -->
    <choices-outline>
        <line choice="com.emsoftware.InData"/>
        <line choice="com.emsoftware.InFlow"/>
    </choices-outline>
    <!-- Define each choice above -->
    <choice id="com.emsoftware.InData" visible="true" title="InData" description="InData brings the full layout, design, typographic and picture publishing power of InDesign to bear on all your data-driven repetitive publishing tasks." start_selected="hostAppInstalledAtTarget()" customLocation="/Applications/Adobe InDesign 2024">
        <pkg-ref id="com.emsoftware.InData">
            <must-close>
                <app id="com.adobe.InDesign"/>
            </must-close>
        </pkg-ref>
    </choice>
    <choice id="com.emsoftware.InFlow" visible="true" title="InFlow" description="InFlow turns any master-page text thread into an autoflow text thread in about 3 seconds. When InFlow detects overset text, it creates a new document page and links the current text story to the autoflow text threads on the newly-created page so that text can flow automatically, page to page." start_selected="hostAppInstalledAtTarget()" customLocation="/Applications/Adobe InDesign 2024">
        <pkg-ref id="com.emsoftware.InFlow">
            <must-close>
                <app id="com.adobe.InDesign"/>
            </must-close>
        </pkg-ref>
    </choice>
    <script>
	function hostAppInstalledAtTarget() {
		return system.files.fileExistsAtPath("/Applications/Adobe InDesign 2024/Adobe InDesign 2024.app");
	}
	function initialChecks() {
		if (! hostAppInstalledAtTarget()) {
			my.result.title = "Adobe InDesign 2024 not found";
			my.result.message = "Adobe InDesign 2024 was not found in \n\"/Applications/Adobe InDesign 2024\". If you continue, please choose a different path.";
			my.result.type = "Warning";
		}
	}
</script>
    <pkg-ref id="com.emsoftware.InData">
        <bundle-version>
            <bundle CFBundleShortVersionString="3.6.1" CFBundleVersion="19.3.6.1" id="com.emsoftware.InDataUI" path="Plug-Ins/Em Software/InData UI.InDesignPlugin/Versions/A"/>
            <bundle CFBundleShortVersionString="3.6.1" CFBundleVersion="19.3.6.1" id="com.emsoftware.InData" path="Plug-Ins/Em Software/InData.InDesignPlugin"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.emsoftware.InFlow">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.5.1" CFBundleVersion="19.2.5.1" id="com.emsoftware.InFlowUI" path="Plug-Ins/Em Software/InFlow UI.InDesignPlugin/Versions/A"/>
            <bundle CFBundleShortVersionString="2.5.1" CFBundleVersion="19.2.5.1" id="com.emsoftware.InFlow" path="Plug-Ins/Em Software/InFlow.InDesignPlugin"/>
        </bundle-version>
    </pkg-ref>
    <product version="3.6.1"/>
</installer-gui-script>