<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-script authoringTool="Packages" authoringToolVersion="1.1.1" authoringToolBuild="2B71" minSpecVersion="1.0">
    <options/>
    <!--+==========================+
        |       Presentation       |
        +==========================+-->
    <title>DISTRIBUTION_TITLE</title>
    <background file="background" scaling="proportional" alignment="bottomleft"/>
    <!--+==========================+
        |         Installer        |
        +==========================+-->
    <choices-outline>
        <line choice="installer_choice_1"/>
        <line choice="installer_choice_2"/>
    </choices-outline>
    <choice id="installer_choice_1" title="ownCloud" description="">
        <pkg-ref id="com.ownCloud.client"/>
    </choice>
    <choice id="installer_choice_2" start_enabled="installer_choice_2_requirement(false,true)" start_selected="installer_choice_2_requirement(false,false)" title="Legacy Finder Plugin (OS X 10.9 or older)" description="">
        <pkg-ref id="com.ownCloud.finderPlugin"/>
    </choice>
    <!--+==========================+
        |    Package References    |
        +==========================+-->
    <pkg-ref id="com.ownCloud.finderPlugin" version="2.3.4.8537" auth="Root" installKBytes="738">#Legacy_Finder_Plugin_(OS_X_10.9_or_older).pkg</pkg-ref>
    <pkg-ref id="com.ownCloud.client" version="2.3.4.8537" auth="Root" installKBytes="71170">#ownCloud.pkg</pkg-ref>
    <!--+==========================+
        |    JavaScript Scripts    |
        +==========================+-->
    <script>

	const __IC_FLAT_DISTRIBUTION__=true;
	
		function olderOsx() {
	   if(system.compareVersions(system.version.ProductVersion, '10.10') == -1) {
		    return true;
		}
		return false;
		}
		

	function installer_choice_2_requirement(inCheckVisibilityOnly,inShowFailedToolTip)
	{
		var tResult;

		tResult=(olderOsx()==true);

		if (tResult==false)
		{
			if (inCheckVisibilityOnly==true)
			{
				tResult=true;
			}
		}

		return tResult;
	}

    </script>
</installer-script>