<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.3" authoringToolBuild="174">
    <title>AJA Kona3 - 7.0</title>
    <options customize="always" allow-external-scripts="yes" rootVolumeOnly="false"/>
    <volume-check script="pm_volume_check();"/>
    <script>function driverCanInstall()
{
	var path = "/Library/Preferences/com.aja.driver.plist";

	if(system.files.fileExistsAtPath(path) == false)
		return true;

	var installedVersion = system.files.plistAtPath(path)['Version'];
	if(installedVersion == null)
		return true;

	var newVersion = "7.0";

	if(system.compareVersions(installedVersion,newVersion) == 1)
	{
		system.runOnce('wrongVersionMsg.rb',"driver",installedVersion,newVersion);
		return false;
	}

	return true;
}

function setupsCanInstall()
{
	var path = "/Library/Preferences/com.aja.easysetups.plist";

	if(system.files.fileExistsAtPath(path) == false)
		return true;

	var installedVersion = system.files.plistAtPath(path)['Version'];
	if(installedVersion == null)
		return true;

	var newVersion = "7.0";

	if(system.compareVersions(installedVersion,newVersion) == 1)
	{
		system.runOnce('wrongVersionMsg.rb',"easy setups",installedVersion,newVersion);
		return false;
	}

	return true;	
}

function pm_volume_check() {
  if(!(my.target.systemVersion.ProductVersion >= '10.5')) {
    my.result.title = 'Failure';
    my.result.message = 'This update requires Mac OS 10.5.0 or higher.';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}



function pm_choicedriver_startSelected() {
  result = true;
  result = result &amp;&amp; (driverCanInstall() == true);
  return result;
}


function pm_choicedriver_startEnabled() {
  result = true;
  result = result &amp;&amp; (driverCanInstall() == true);
  return result;
}


function pm_choicesetups_selected() {
  result = true;
  result = result &amp;&amp; (setupsCanInstall() == true);
  return result;
}


function pm_choicesetups_enabled() {
  result = true;
  result = result &amp;&amp; (setupsCanInstall() == true);
  return result;
}


function pm_choicesetups_startSelected() {
  result = true;
  result = result &amp;&amp; (setupsCanInstall() == true);
  return result;
}


function pm_choicesetups_startEnabled() {
  result = true;
  result = result &amp;&amp; (setupsCanInstall() == true);
  return result;
}</script>
    <background file="background" alignment="topleft" scaling="tofit"/>
    <welcome file="Welcome"/>
    <readme file="ReadMe"/>
    <license file="License"/>
    <choices-outline>
        <line choice="choicedriver"/>
        <line choice="choicesetups">
            <line choice="choicebase"/>
            <line choice="choice105"/>
            <line choice="choice106"/>
            <line choice="choice107"/>
            <line choice="choice108"/>
            <line choice="choice109"/>
            <line choice="choice110"/>
            <line choice="choice112"/>
            <line choice="choice113"/>
            <line choice="choice103"/>
            <line choice="choice104"/>
            <line choice="choice101"/>
            <line choice="choice102"/>
            <line choice="choice114"/>
            <line choice="choice100"/>
            <line choice="choice116"/>
            <line choice="choice231"/>
            <line choice="choice115"/>
        </line>
    </choices-outline>
    <choice id="choicedriver" title="Driver" description="Driver for Kona 3." start_selected="pm_choicedriver_startSelected()" start_enabled="pm_choicedriver_startEnabled()">
        <pkg-ref id="com.aja.Kona3.pkg"/>
    </choice>
    <choice id="choicesetups" title="Kona 3 Setups" start_selected="pm_choicesetups_startSelected()" start_enabled="pm_choicesetups_startEnabled()" selected="pm_choicesetups_selected()" enabled="pm_choicesetups_enabled()"/>
    <choice id="choicebase" title="Base" description="This installs 720p50, 720p59.94, 1080i25, 1080i29.97, 1080psf23.98 Easy Setups in 8 and 10bit Uncompressed, and  Apple ProRes formats. This also installs PAL and NTSC Easy Setups in 8 and 10bit Uncompressed, Apple ProRes, DV, DVCPro, and DVCPro50 formats" start_selected="pm_choicesetups_startSelected()"   enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3BaseEasySetups.pkg"/>
    </choice>
    <choice id="choice105" title="Additional 23.98/24 fps" description="This installs 1080p23.98 and 1080p24 Easy Setups in 8 and 10bit Uncompressed, and Apple ProRes formats. This set also installs NTSC 23.98 Easy Setups" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional239824FpsEasySetups.pkg"/>
    </choice>
    <choice id="choice106" title="Additional 23.98/24 fps DVCProHD" description="This installs 1080p23.98 and 1080p24 Easy Setups in the DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional239824FpsDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice107" title="Additional 25/50 fps" description="This installs 720p25 and 1080p25 Easy Setups in 8 and 10bit Uncompressed, and Apple ProRes formats. " start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional2550FpsEasySetups.pkg"/>
    </choice>
    <choice id="choice108" title="Additional 25/50 fps DVCProHD" description="This installs 720p25 and 1080p25 Easy Setups in the DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional2550FpsDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice109" title="Additional 29.97/30 fps" description="This installs 1080p29.97 and 1080p30 Easy Setups in 8 and 10bit Uncompressed, and Apple ProRes formats" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional299730FpsEasySetups.pkg"/>
    </choice>
    <choice id="choice110" title="Additional 29.97/30 fps DVCProHD" description="This installs 1080p29.97 and 1080p30 Easy Setups in the DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional299730FpsDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice112" title="Additional 59.94/60 fps" description="This installs 1080p59.94 and 1080p60 Easy Setups in 8 and 10bit Uncompressed, and Apple ProRes formats" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional599460FpsEasySetups.pkg"/>
    </choice>
    <choice id="choice113" title="Additional 59.94/60 fps DVCProHD" description="This installs 720p59.94 Easy Setups in the DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Additional599460FpsDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice103" title="720p 23.98 for CrossConversion" description="This installs 720p23.98 Easy Setups for Cross Conversion to 1080psf23.98 in 8 and 10bit Uncompressed, and Apple ProRes formats" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3720P2398ForCrossconversionEasySetups.pkg"/>
    </choice>
    <choice id="choice104" title="720p 23.98 for CrossConversion DVCProHD" description="This installs 720p23.98 Easy Setups for Cross Conversion to 1080psf23.98 in DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3720P2398ForCrossconversionDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice101" title="720/1080 VFR" description="This installs 720p23.98, 720p25 and 1080p23.98 VFR Easy Setups in 8 and 10bit Uncompressed, and Apple ProRes formats" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona37201080VfrEasySetups.pkg"/>
    </choice>
    <choice id="choice102" title="720/1080 VFR DVCProHD" description="This installs 720p23.98, 720p25 and 1080p23.98 VFR Easy Setups in DVCProHD format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona37201080VfrDvcprohdEasySetups.pkg"/>
    </choice>
    <choice id="choice114" title="Dual Link HD" description="This installs 1080psf23.98 Dual Link RGB Easy Setups in 10 Bit Uncompressed format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3DualLinkHdEasySetups.pkg"/>
    </choice>
    <choice id="choice100" title="2K" description="This installs 2Kx1080 and 2Kx1556 psf23.98 10 bit RGB Easy Setups" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona32KEasySetups.pkg"/>
    </choice>
    <choice id="choice116" title="Red" description="This installs RED Easy setups" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3RedEasySetups.pkg"/>
    </choice>
    <choice id="choice231" title="IMX50Mb" description="This installs NTSC and PAL Easy Setups in IMX50Mb format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3Imx50MbEasySetups.pkg"/>
    </choice>
    <choice id="choice115" title="HDV" description="This installs 720p30, 1080i50 and 1080i60 Easy Setups in the HDV format" start_selected="false"  enabled="pm_choicesetups_enabled()">
        <pkg-ref id="com.aja.kona3.kona3HdvEasySetups.pkg"/>
    </choice>
    <pkg-ref id="com.aja.Kona3.pkg" installKBytes="38596" version="1" auth="Root" onConclusion="RequireRestart">file:./Contents/Packages/Kona3.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3BaseEasySetups.pkg" installKBytes="384" version="" auth="Root">file:./Contents/Packages/Kona3%20Base%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional239824FpsEasySetups.pkg" installKBytes="216" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2023.98:24%20fps%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional239824FpsDvcprohdEasySetups.pkg" installKBytes="32" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2023.98:24%20fps%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional2550FpsEasySetups.pkg" installKBytes="152" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2025:50%20fps%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional2550FpsDvcprohdEasySetups.pkg" installKBytes="32" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2025:50%20fps%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional299730FpsEasySetups.pkg" installKBytes="104" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2029.97:30%20fps%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional299730FpsDvcprohdEasySetups.pkg" installKBytes="24" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2029.97:30%20fps%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional599460FpsEasySetups.pkg" installKBytes="96" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2059.94:60%20fps%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Additional599460FpsDvcprohdEasySetups.pkg" installKBytes="8" version="" auth="Root">file:./Contents/Packages/Kona3%20Additional%2059.94:60%20fps%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3720P2398ForCrossconversionEasySetups.pkg" installKBytes="48" version="" auth="Root">file:./Contents/Packages/Kona3%20720p%2023.98%20for%20CrossConversion%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3720P2398ForCrossconversionDvcprohdEasySetups.pkg" installKBytes="8" version="" auth="Root">file:./Contents/Packages/Kona3%20720p%2023.98%20for%20CrossConversion%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona37201080VfrEasySetups.pkg" installKBytes="144" version="" auth="Root">file:./Contents/Packages/Kona3%20720:1080%20VFR%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona37201080VfrDvcprohdEasySetups.pkg" installKBytes="24" version="" auth="Root">file:./Contents/Packages/Kona3%20720:1080%20VFR%20DVCProHD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3DualLinkHdEasySetups.pkg" installKBytes="32" version="" auth="Root">file:./Contents/Packages/Kona3%20Dual%20Link%20HD%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona32KEasySetups.pkg" installKBytes="32" version="" auth="Root">file:./Contents/Packages/Kona3%202K%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3RedEasySetups.pkg" installKBytes="8" version="" auth="Root">file:./Contents/Packages/Kona3%20Red%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3Imx50MbEasySetups.pkg" installKBytes="16" version="" auth="Root">file:./Contents/Packages/Kona3%20IMX50Mb%20Easy%20Setups.pkg</pkg-ref>
    <pkg-ref id="com.aja.kona3.kona3HdvEasySetups.pkg" installKBytes="48" version="" auth="Root">file:./Contents/Packages/Kona3%20HDV%20Easy%20Setups.pkg</pkg-ref>
</installer-script>
