<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>InCatalog 2.32</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.InCatalog" version="2.32.0" auth="none" packageIdentifier="com.emsoftware.incatalog" installKBytes="3995">#InCatalog.pkg</pkg-ref>
    <pkg-ref id="com.emsoftware.InFlow" version="2.32.0" auth="none" packageIdentifier="com.emsoftware.inflow" installKBytes="1196">#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.InCatalog"/>
        <line choice="com.emsoftware.InFlow"/>
    </choices-outline>
    <!-- Define each choice above -->
    <choice id="com.emsoftware.InCatalog" visible="true" title="InCatalog" description="InCatalog, with its easy-to-use data linker panels, enables you to create transparent links between your documents and your databases or spreadsheets. Once you have links in place, you can update prices, graphics, or product information with a simple menu invocation—or even change versions or swap languages." start_selected="hostAppInstalledAtTarget()" customLocation="/Applications/Adobe InDesign 2022">
        <pkg-ref id="com.emsoftware.InCatalog">
            <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 2022">
        <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 2022/Adobe InDesign 2022.app");
	}
	function initialChecks() {
		if (! hostAppInstalledAtTarget()) {
			my.result.title = "Adobe InDesign 2022 not found";
			my.result.message = "Adobe InDesign 2022 was not found in \n\"/Applications/Adobe InDesign 2022\". If you continue, please choose a different path.";
			my.result.type = "Warning";
		}
	}
</script>
    <pkg-ref id="com.emsoftware.InCatalog">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.32" CFBundleVersion="17.2.32" id="com.emsoftware.InCatalog" path="Plug-Ins/Em Software/InCatalog.InDesignPlugin"/>
            <bundle CFBundleShortVersionString="2.32" CFBundleVersion="17.2.32" id="com.emsoftware.InCatalogUI" path="Plug-Ins/Em Software/InCatalog UI.InDesignPlugin"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.emsoftware.InFlow">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.5.1" CFBundleVersion="17.2.5.1" id="com.emsoftware.InFlowUI" path="Plug-Ins/Em Software/InFlow UI.InDesignPlugin/Versions/A"/>
            <bundle CFBundleShortVersionString="2.5.1" CFBundleVersion="17.2.5.1" id="com.emsoftware.InFlow" path="Plug-Ins/Em Software/InFlow.InDesignPlugin"/>
        </bundle-version>
    </pkg-ref>
    <product version="2.32.0"/>
</installer-gui-script>