<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>WordsFlow 3.18.2</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.WordsFlow" version="3.18.2" auth="none" packageIdentifier="com.emsoftware.wordsflow" installKBytes="55680" updateKBytes="0">#WordsFlow.pkg</pkg-ref>
    <!-- List them again here. They can now be organized
         as a hierarchy if you want. -->
    <choices-outline>
        <line choice="com.emsoftware.WordsFlow"/>
    </choices-outline>
    <!-- Define each choice above -->
    <choice id="com.emsoftware.WordsFlow" visible="true" title="WordsFlow" description="WordsFlow combines the editing power of Word and Excel with the layout power of InDesign, adding its own dynamic linking and sophisticated merge technologies. WordsFlow can supercharge your workflow by allowing you to overlap production and editorial work." start_selected="hostAppInstalledAtTarget()" customLocation="/Applications/Adobe InDesign 2026">
        <pkg-ref id="com.emsoftware.WordsFlow">
            <must-close>
                <app id="com.adobe.InDesign"/>
            </must-close>
        </pkg-ref>
    </choice>
    <script>
	function hostAppInstalledAtTarget() {
		return system.files.fileExistsAtPath("/Applications/Adobe InDesign 2026/Adobe InDesign 2026.app");
	}
	function initialChecks() {
		if (! hostAppInstalledAtTarget()) {
			my.result.title = "Adobe InDesign 2026 not found";
			my.result.message = "Adobe InDesign 2026 was not found in \n\"/Applications/Adobe InDesign 2026\". If you continue, please choose a different path.";
			my.result.type = "Warning";
		}
	}
</script>
    <pkg-ref id="com.emsoftware.WordsFlow">
        <bundle-version>
            <bundle CFBundleShortVersionString="3.18.2" CFBundleVersion="21.3.18.2" id="com.emsoftware.WordsFlow" path="Plug-Ins/Em Software/WordsFlow.InDesignPlugin/Versions/A"/>
            <bundle CFBundleShortVersionString="3.18.2" CFBundleVersion="21.3.18.2" id="com.emsoftware.WordsFlowUI" path="Plug-Ins/Em Software/WordsFlow UI.InDesignPlugin"/>
        </bundle-version>
    </pkg-ref>
    <product version="3.18.2"/>
</installer-gui-script>