<?xml version="1.0" encoding="UTF-8"?>
<installer-gui-script minSpecVersion='1.0040'>

<title>TITLE_DIST</title>

<welcome	file='Welcome.rtf'/>
<readme		file='ReadMe.rtf'/>
<license	file="License.rtf" sla="EA0646" auto='false'/>

<background	file='background.tif' 
			scaling='none' 
			alignment='topleft'/>

<options	customize='allow'
			rootVolumeOnly = 'true'
			hostArchitectures = 'i386'/>

<installation-check script='installationCheck()'/>
<volume-check script="volumeCheck()"/>

<script>
var updateName = "iLife 11";

function canHasUpdate(myAppPath,myAppVersion)
{
	var version = PathGetShortVersion(my.target.mountpoint + myAppPath);
	debuglog(myAppPath + " has version " + version + " and I am looking for version " + myAppVersion);

	if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) 
	{
		debuglog("==> canHasUpdate is returning true by fiat!");
		return true;
	}
	
	if (system.compareVersions(version, myAppVersion) > 0) {
		my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
		debuglog("==> canHasUpdate is returning false because existing is newer.");
		return false;
	}
	
	debuglog("==> canHasUpdate returns true because existing is not newer.");
	return true;
}

function needsUpdate(myAppPath,myAppVersion)
{
	var version = PathGetShortVersion(my.target.mountpoint + myAppPath);

	if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
	
	if (system.compareVersions(version, myAppVersion) >= 0) {
		my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
		return false;
	}
			
	return true;
}

///////
var GBPath			= "/Applications/GarageBand.app";
var myGBVersion		= "6.0";

function canHasGarageBand()
{
	return canHasUpdate(GBPath,myGBVersion);
}
///////

///////
var iWebPath		= "/Applications/iWeb.app";
var myiWebVersion	= "3.0.2";

function canHasiWeb()
{
	return canHasUpdate(iWebPath,myiWebVersion);
}
///////

///////	
var iDVDPath		= "/Applications/iDVD.app";
var	myiDVDVersion	= "7.1";

function canHasiDVD()
{
	return canHasUpdate(iDVDPath,myiDVDVersion);
}
///////

///////
var iMoviePath		= "/Applications/iMovie.app";
var myiMovieVersion	= "9.0";

function canHasiMovie()
{
	return canHasUpdate(iMoviePath,myiMovieVersion);
}
///////

///////
var iPhotoPath		= "/Applications/iPhoto.app";
var myiPhotoVersion = "9.0";

function canHasiPhoto()
{
	return canHasUpdate(iPhotoPath,myiPhotoVersion);
}
///////

///////
var ProKitPath			= "/System/Library/PrivateFrameworks/ProKit.framework";
var myProKitVersion		= "6.0";

function canHasProKit()
{
	return canHasUpdate(ProKitPath,myProKitVersion);
}
///////

///////
var	RawCameraPath		= "/System/Library/CoreServices/RawCamera.bundle";
var myRawCameraVersion	= "3.0.2";

function canHasRawCamera()
{
	return canHasUpdate(RawCameraPath,myRawCameraVersion);
}
///////

///////
var AICPath			= "/Library/QuickTime/AppleIntermediateCodec.component";
var myAICVersion	= "1.3.1";

function canHasAIC()
{
	return canHasUpdate(AICPath,myAICVersion)
}
///////

///////
var iLMBPath		= "/System/Library/PrivateFrameworks/iLifeMediaBrowser.framework";
var myiLMBVersion	= "2.5";

function canHasiLMB2()
{
	return canHasUpdate(iLMBPath,myiLMBVersion)
}
///////

///////
var iLifeSlideshowPath		= "/Library/Frameworks/iLifeSlideshow.framework";
var myiLifeSlideshowVersion	= "2.0";

function canHasiLifeSlideshow()
{
	return canHasUpdate(iLifeSlideshowPath,myiLifeSlideshowVersion)
}
///////

///////
var iLFRPath			= "/Library/Frameworks/iLifeFaceRecognition.framework";
var myiLFRVersion		= "1.0";

function canHasiLifeFaceRecognition()
{
	return canHasUpdate(iLFRPath,myiLFRVersion)
}
///////

///////
var NAAPath			= "/Library/Frameworks/NyxAudioAnalysis.framework";
var myNAAVersion	= "12";

function canHasiLifeAudioAnalysis()
{
	return canHasUpdate(NAAPath,myNAAVersion)
}
///////


    function installationCheck()
    {
        // Rule out insufficient hardware
        if ( !isIntel() )                                                                                                            
        {                                                                                                                                   
            my.result.title = system.localizedString('TITLE_INCOMPATHW'); 
            my.result.message = system.localizedString('ERROR_INCOMPATHW'); 
            my.result.type = 'Fatal';
            return false;                                                                                                                 
        }
		
        if ( !hasEnoughRAM() )                                                                                                            
        {                                                                                                                                   
            my.result.title = system.localizedString('TITLE_NOTENOUGHRAM'); 
            my.result.message = system.localizedString('ERROR_NOTENOUGHRAM'); 
            my.result.type = 'Fatal';
            return false;                                                                                                                 
        }
		
		// If they don't have Snow Leopard, can't help them
		if (system.compareVersions(system.version.ProductVersion, '10.6') == -1)
		{
            my.result.title = system.localizedString('TITLE_OLDSYSTEM'); 
			my.result.message = system.localizedStringWithFormat('ERROR_OLDSYSTEM');
			my.result.type = 'Fatal';
			return false;
		}
		
		// if they do, help them get up to date. 
		if (system.compareVersions(system.version.ProductVersion, '10.6.3') == -1)
		{
            my.result.title = system.localizedString('TITLE_OLDSYSTEM'); 
			my.result.message = system.localizedStringWithFormat('ERROR_OLDSYSTEM') + system.localizedStringWithFormat('ERROR_GOUPDATE');
			my.result.type = 'Fatal';
			return false;
		}
		
		// Make sure apps aren't running
		var IDArray = [	'com.apple.iPhoto', 
							'com.apple.iMovie',
							'com.apple.iMovie7',
							'com.apple.iMovie8',
							'com.apple.iMovieHD',
							'com.apple.iDVD',
							'com.apple.garageband', 
							'com.apple.iWeb',
						];
						
		var NameArray = [	"APPNAME_IPHOTO",
							"APPNAME_IMOVIE",
							"APPNAME_IMOVIE",
							"APPNAME_IMOVIE",
							"APPNAME_IMOVIEHD",
							"APPNAME_IDVD",
							"APPNAME_GB",
							"APPNAME_iWeb",
						];
		var numAppsRunning  = 0;
		var OneAppRunning   = "";
		var ManyAppsRunning = "";
		
		for (var index = 0; index &lt; IDArray.length; index++ ) {
			// secure check for bypass cookie
			if (system.applications.fromIdentifier(IDArray[index])) {
				numAppsRunning++;
				OneAppRunning = system.localizedStringWithFormat(NameArray[index]);
				ManyAppsRunning = ManyAppsRunning + "\t" + OneAppRunning + "\n";
			}
		}
		if (numAppsRunning == 1) {
			my.result.title = system.localizedStringWithFormat('TITLE_RUNNING_SINGULAR').replace(/\^0/gi,OneAppRunning);
			my.result.message = system.localizedStringWithFormat('ERROR_RUNNING');
			my.result.type = 'Fatal';
			return false;
		}
		if (numAppsRunning > 1) {
			my.result.title = system.localizedStringWithFormat('TITLE_RUNNING_PLURAL');
			my.result.message = ManyAppsRunning + "\n" + system.localizedStringWithFormat('ERROR_RUNNING');
			my.result.type = 'Fatal';
			return false;
		}
		
        return true;
    }

	function volumeCheck()
	{
		// if they have system below 10.6.3, they cannot install on that volume
		// (this is in addition to the "root volume only")
		if (system.compareVersions(system.version.ProductVersion, '10.6.3') == -1)
		{
            my.result.title = system.localizedString('TITLE_OLDSYSTEM'); 
			my.result.message = system.localizedStringWithFormat('ERROR_OLDSYSTEM');
			my.result.type = 'Fatal';
			return false;
		}
    }
	
	function isIntel()
	{
		return (system.sysctl('hw.machine') == 'i386' || system.sysctl('hw.byteorder') == '1234');
	}

    function hasEnoughRAM()
    {
        return (system.sysctl('hw.memsize') &gt;= 1073741824);
    }	
	

	<!-- These are used below, by the packages themselves -->

	function needsGBLoops()
	{
		// If they have the original AIF loops, don't replace them
		if (hasOriginalLoops()) 
		{
			debuglog("==> Target hasOriginalLoops so no loops installed.");
			return false;
		}
		
		// If they have the EXTRA loops, don't install; that'd downgrade
		if (hasExtraLoops())
		{
			debuglog("==> Target hasExtraLoops so no loops installed.");
			return false;
		}

		// ok, they need loops.
		debuglog("==> Target doesn't have original loops, doesn't have extra loops, so it needs the loops installed.");
		return true;
	}
	
	function hasOriginalLoops()
	{
		// Test for a representative AIF (old format) loop. If it's there, we have the complete set.
		// If we have the complete set, we do NOT want to install new loops.
		
		// Representative can be in a default or a custom location
		
		// test default location
		var defaultLoopsPath = my.target.mountpoint + "/Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand/";
		var representativeLoopLocation = "70s Ballad Piano 01.aif"
		
		if (system.files.fileExistsAtPath(defaultLoopsPath + representativeLoopLocation)) 
		{
			debuglog("Target hasOriginalLoops in defaultLoopsPath.");
			return true;
		}

		// Get custom location from PackageRegistry (only GB 3 allowed custom install location)
		var packageRegistryPlistPath = my.target.mountpoint + "/Library/Application Support/GarageBand/Package Registry.plist";
		if (system.files.fileExistsAtPath(packageRegistryPlistPath))
		{
			var packageRegistry = system.files.plistAtPath(packageRegistryPlistPath);
			var prGarageBand30 = packageRegistry["GarageBand 3.0"];
			if (prGarageBand30)
			{
				var prLoopsLibrary = prGarageBand30["Apple Loops Library"];
				if (prLoopsLibrary)
				{
					if (system.files.fileExistsAtPath(prLoopsLibrary + representativeLoopLocation))
					{
						debuglog("Target hasOriginalLoops in custom path.");
						return true;
					}
				}
			}
		}

		debuglog("didn't find original loops.");
		return false;	
	}
	
	function hasExtraLoops()
	{
		var defaultLoopsPath = my.target.mountpoint + "/Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand/";
		var representativeLoopLocation = "70s Ballad Drums 01.caf"
	
		// test default location (the only place they can be installed)
		return (system.files.fileExistsAtPath(defaultLoopsPath + representativeLoopLocation));
	
	}

	function NeedsiLifeSoundEffects()
	{
		var defaultInstrumentPath = my.target.mountpoint + "/Library/Audio/Apple Loops/Apple/iLife Sound Effects/";
		var representativeAIFeffect = "Animals/Bark.aif"
		
		// never replace aif files with caf
		// test default location (the only place they can be installed)
		if (system.files.fileExistsAtPath(defaultInstrumentPath + representativeAIFeffect)) 
		{
            my.choice.tooltip = system.localizedStringWithFormat('TT_ALREADYINSTALLED');
			return false;
		}
		
		// otherwise, install
		return true;
	}
</script>

	<!-- Common include -->
<script>
	function PathGetShortVersion(path)
	{
		var bundle = system.files.bundleAtPath(path);
		if (bundle == null)
			return null;
		var shortVers = bundle.CFBundleShortVersionString;
		shortVers = _PadVersionString(shortVers, 3);
		return shortVers;
	}

	function _PadVersionString(version, tupleCount)
	{
		if (version == null)
			version = "0";
		var components = version.split(".");
		if (components.length > tupleCount)
			components = components.slice(0, tupleCount);
		else
			for (; components.length&lt;tupleCount; )
				components.push("0");
		return components.join(".");
	}

	function BundleGetCompositeVersion5(bundle)
	{
		if (bundle == null)
			return null;
		var shortVers = bundle.CFBundleShortVersionString;
		shortVers = _PadVersionString(shortVers, 3);
		var sourceVers = bundle.SourceVersion;
		sourceVers = _PadVersionString(sourceVers, 1);
		var buildVers = bundle.BuildVersion;
		buildVers = _PadVersionString(buildVers, 1);
		var fiveTupleVers = shortVers + "." + sourceVers + "." + buildVers;
		return fiveTupleVers;
	}

	function CheckNameRegistry(path, property, value)
	{
		try
		{
			var obj = system.ioregistry.fromPath(path);
			if (obj == null)
				return false;

			var propObj = obj[property];
			if (propObj == null)
				return false;

			if (typeof(propObj) == "string")	// string
			{
				return (propObj == value);
			}
			else if (typeof(propObj) == "object")	// array contains
			{
				for (var i=0; i&lt;propObj.length; i++)
					if (propObj[i] == value)
						return true;
			}
		}
		catch (e) {}

		return false;
	}
	
	function debuglog(message)
	{
		// yes, this is secure
		if (system.files.fileExistsAtPath("/tmp/com.apple.pkg.testing")) system.log("********** " + updateName + ": " + message);
	}
</script>	
	
<choices-outline>
    <line choice="iLifeSupport">
		<line choice="iLifeRegistration"/>
		<line choice="iLifeCookie"/>
		<line choice="AppleIntermediateCodec"/>
		<line choice="RawCamera"/>
		<line choice="iLifeMediaBrowser"/>
		<line choice="iLifeSlideshow"/>
		<line choice="iLifeFaceRecognition"/>
		<line choice="iLifeAudioAnalysis"/>
	</line>
	
    <line choice="iPhoto">
		<line choice="iPhotoApp"/>
		<line choice="iPhotoThemes"/>
		<line choice="iPhotoLibraryUpgradeTool"/>
		<line choice="ProAppRuntimeFlat"/>
    </line>
    
    <line choice="iMovie"/>

    <line choice="iDVD"/>
    
    <line choice="GarageBand">
		<line choice="GarageBandApp"/>
		<line choice="GarageBandInstruments"/>
		<line choice="GarageBandFactoryContent"/>
		<line choice="GarageBandLTPContent"/>
		<line choice="GarageBandLoops"/>
		<line choice="GarageBandMagicContent"/>
    </line>

    <line choice="iLifeSoundEffects"/>

    <line choice="iWeb"/>
	
	<line choice="iLifeRegistrationPost"/>
</choices-outline>
	
	
	<choice id = "iLifeSupport"
        title = "iLifeSupport.pkg_title"
        description = "iLifeSupport.pkg_description"
		enabled = 'false'
		selected = 'true'
    >
	<!-- See below for the packages that this choice installs -->
	</choice>
	
	<choice id = "iPhoto"
        title = "iPhoto.pkg_title"
        description = 'iPhoto.pkg_description'
        enabled = 'canHasiPhoto()'
        start_selected = 'canHasiPhoto()'
    >
	</choice>

	<choice id = "iPhotoApp"
        title = "iPhoto.pkg_title"
        description = 'iPhoto.pkg_description'
        enabled = 'false'
        selected = 'choices.iPhoto.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
    >
		<pkg-ref auth="root" id='com.apple.pkg.iPhoto'>file:./iPhoto.pkg</pkg-ref>
	</choice>

	<choice id = "iPhotoThemes"
        title = "iPhotoContent.pkg_title"
        description = 'iPhotoContent.pkg_description'
        enabled = 'false'
        selected = 'choices.iPhoto.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
	>
		<pkg-ref auth="root" id='com.apple.pkg.iPhotoContent'>file:./iPhotoContent.pkg</pkg-ref>
	</choice>
	
	<choice id = "iPhotoLibraryUpgradeTool"
        title = "iPhotoLibraryUpgradeTool.pkg_title"
        description = 'iPhotoLibraryUpgradeTool.pkg_description'
        enabled = 'false'
        selected = 'choices.iPhoto.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
	>
		<pkg-ref auth="root" id='com.apple.pkg.iPhotoLibraryUpgradeTool'>file:./iPhotoLibraryUpgradeTool.pkg</pkg-ref>
	</choice>
	
	<choice id = "ProAppRuntimeFlat"
        title = "ProAppRuntimeFlat.pkg_title"
        description = 'ProAppRuntimeFlat.pkg_description'
        enabled = 'false'
        selected = 'canHasProKit() &amp;&amp; choices.iPhoto.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
	>
		<pkg-ref auth="root" id='com.apple.pkg.ProAppRuntimeFlat'>file:./ProAppRuntimeFlat.pkg</pkg-ref>
	</choice>
			
	<choice id = "iMovie"
        title = "iMovie.pkg_title"
        description = 'iMovie.pkg_description'
        enabled = 'canHasiMovie()'
        start_selected = 'canHasiMovie()'
    >
		<pkg-ref auth="root" id='com.apple.pkg.iMovie'>file:./iMovie.pkg</pkg-ref>
		<pkg-ref auth="root" id='com.apple.pkg.iMovie_PreviousFolder'>file:./iMovie_PreviousFolder.pkg</pkg-ref>
	</choice>
		
	<choice id= "iDVD"
		title = "iDVD.pkg_title"
		description = "iDVD.pkg_description"
        enabled = 'canHasiDVD()'
		start_selected = 'canHasiDVD()'
    >
		<pkg-ref auth="root" id='com.apple.pkg.iDVD'>file:./iDVD.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBand"
		title = "GarageBand.pkg_title"
		description = "GarageBand.pkg_description"
        enabled = 'canHasGarageBand()'
	/>

	<choice id= "GarageBandApp"
		title = "GarageBand.pkg_title"
		description = "GarageBand.pkg_description"
        enabled = 'false'
        start_selected = 'canHasGarageBand()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBand'>file:./GarageBand.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBandMagicContent"
		title = "GarageBand_MagicContent.pkg_title"
		description = "GarageBand_MagicContent.pkg_description"
        enabled = 'false'
        selected = 'choices.GarageBandApp.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBand_MagicContent'>file:./GarageBand_MagicContent.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBandFactoryContent"
		title = "GarageBandFactoryContent.pkg_title"
		description = "GarageBandFactoryContent.pkg_description"
        enabled = 'false'
        selected = 'choices.GarageBandApp.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBandFactoryContent'>file:./GarageBandFactoryContent.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBandLTPContent"
		title = "GarageBand_LTPContent.pkg_title"
		description = "GarageBand_LTPContent.pkg_description"
        enabled = 'false'
        selected = 'choices.GarageBandApp.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBand_LTPContent'>file:./GarageBand_LTPContent.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBandInstruments"
		title = "GarageBand_Instruments.pkg_title"
		description = "GarageBand_Instruments.pkg_description"
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
        enabled = 'false'
        selected = 'choices.GarageBandApp.selected'
        customLocation = '/Library/Application Support/GarageBand/'
        customLocationAllowAlternateVolumes = 'YES'
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBand_Instruments'>file:./GarageBand_Instruments.pkg</pkg-ref>
	</choice>

	<choice id= "GarageBandLoops"
		title = "GarageBand_Loops.pkg_title"
		description = "GarageBand_Loops.pkg_description"
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
        enabled = 'false' 
        selected = 'choices.GarageBandApp.selected &amp;&amp; needsGBLoops()'
		
        customLocation = '/Library/Audio/'
        customLocationAllowAlternateVolumes = 'YES'
    >
		<pkg-ref auth="root" id='com.apple.pkg.GarageBand_Loops'>file:./GarageBand_Loops.pkg</pkg-ref>
	</choice>

	<choice id= "iLifeSoundEffects"
		title = "iLifeSoundEffects_Loops.pkg_title"
		description = "iLifeSoundEffects_Loops.pkg_description"
        enabled = 'NeedsiLifeSoundEffects()'
        start_selected = 'NeedsiLifeSoundEffects()'
    >
		<pkg-ref auth="root" id='com.apple.pkg.iLifeSoundEffects_Loops'>file:./iLifeSoundEffects_Loops.pkg</pkg-ref>
	</choice>

    <choice id="iWeb" 
		title="iWeb.pkg_title" 
		description='iWeb.pkg_description' 
		enabled='canHasiWeb()' 
		start_selected='canHasiWeb()'
	>
        <pkg-ref auth="root" id='com.apple.pkg.iWeb'>file:./iWeb.pkg</pkg-ref>
    </choice>
	
	<!--
			invisible choices for shared components.
	-->

	<choice id="iLifeRegistration"
		title="iLifeRegistration.pkg_title"
		description="iLifeRegistration.pkg_description"
		selected = 'choices.iLifeSupport.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id="com.apple.pkg.iLifeRegistration">file:./iLifeRegistration.pkg</pkg-ref>
	</choice>

	<choice id="iLifeCookie"
		title="iLifeCookie.pkg_title"
		description="iLifeCookie.pkg_description"
		selected = 'choices.iLifeSupport.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id='com.apple.pkg.iLifeCookie'>file:./iLifeCookie.pkg</pkg-ref>
	</choice>

	<choice id="AppleIntermediateCodec"
		title="AppleIntermediateCodec.pkg_title"
		description="AppleIntermediateCodec.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasAIC()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
        <pkg-ref auth="root" id='com.apple.pkg.AppleIntermediateCodec'>file:./AppleIntermediateCodec.pkg</pkg-ref>
	</choice>

	<choice id = "RawCamera"
		title="RAWCameraUpdate3.pkg_title"
		description="RAWCameraUpdate3.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasRawCamera()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id='com.apple.pkg.RAWCameraUpdate3'>file:./RAWCameraUpdate3.pkg</pkg-ref>
	</choice>
	
	<choice id="iLifeMediaBrowser"
		title="iLifeMediaBrowser.pkg_title"
		description="iLifeMediaBrowser.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasiLMB2()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id='com.apple.pkg.iLifeMediaBrowser'>file:./iLifeMediaBrowser.pkg</pkg-ref>
	</choice>

	<choice id="iLifeSlideshow"
		title="iLifeSlideshow.pkg_title"
		description="iLifeSlideshow.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasiLifeSlideshow()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id='com.apple.pkg.iLifeSlideshow_v2'>file:./iLifeSlideshow_v2.pkg</pkg-ref>
	</choice>

	<choice id="iLifeFaceRecognition"
		title="iLifeFaceRecognition.pkg_title"
		description="iLifeFaceRecognition.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasiLifeFaceRecognition()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
        <pkg-ref auth="root" id='com.apple.pkg.iLifeFaceRecognition'>file:./iLifeFaceRecognition.pkg</pkg-ref>
	</choice>

	<choice id="iLifeAudioAnalysis"
		title="iLifeAudioAnalysis.pkg_title"
		description="iLifeAudioAnalysis.pkg_description"
		selected = 'choices.iLifeSupport.selected &amp;&amp; canHasiLifeAudioAnalysis()'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
        <pkg-ref auth="root" id='com.apple.pkg.iLifeAudioAnalysis'>file:./iLifeAudioAnalysis.pkg</pkg-ref>
	</choice>

	<choice id="iLifeRegistrationPost"
		title="iLifeRegistrationPost.pkg_title"
		description="iLifeRegistrationPost.pkg_description"
		selected = 'choices.iLifeSupport.selected'
		visible="system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.testing')"
		enabled="false"
	>
		<pkg-ref auth="root" id="com.apple.pkg.iLifeRegistrationPost">file:./iLifeRegistrationPost.pkg</pkg-ref>
	</choice>

	<pkg-ref id='com.apple.pkg.GarageBand' installKBytes='246630' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Instruments' installKBytes='353934' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Loops' installKBytes='98611' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_LTPContent' installKBytes='625983' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_MagicContent' installKBytes='443654' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBandFactoryContent' installKBytes='13443' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iDVD' installKBytes='267648' version='7.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeAudioAnalysis' installKBytes='1492' version='11.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeCookie' installKBytes='238' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeFaceRecognition' installKBytes='4220' version='1.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeMediaBrowser' installKBytes='8490' version='2.5.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistration' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistrationPost' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSlideshow_v2' installKBytes='123786' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSoundEffects_Loops' installKBytes='266756' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie' installKBytes='388092' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie_PreviousFolder' installKBytes='113' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhoto' installKBytes='458199' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhotoContent' installKBytes='390756' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iWeb' installKBytes='213114' version='3.0.2.1.1203730862'/>

	<pkg-ref id='com.apple.pkg.GarageBand' installKBytes='246630' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Instruments' installKBytes='353934' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Loops' installKBytes='98611' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_LTPContent' installKBytes='625983' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_MagicContent' installKBytes='443654' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBandFactoryContent' installKBytes='13443' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iDVD' installKBytes='267648' version='7.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeAudioAnalysis' installKBytes='1492' version='11.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeCookie' installKBytes='238' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeFaceRecognition' installKBytes='4220' version='1.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeMediaBrowser' installKBytes='8490' version='2.5.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistration' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistrationPost' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSlideshow_v2' installKBytes='123786' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSoundEffects_Loops' installKBytes='266756' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie' installKBytes='388092' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie_PreviousFolder' installKBytes='113' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhoto' installKBytes='458199' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhotoContent' installKBytes='390756' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iWeb' installKBytes='213114' version='3.0.2.1.1203730862'/>

	<pkg-ref id='com.apple.pkg.AppleIntermediateCodec' installKBytes='424' version='1.3.1.1.1249343429'/>
	<pkg-ref id='com.apple.pkg.GarageBand' installKBytes='246630' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Instruments' installKBytes='353934' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_Loops' installKBytes='98611' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_LTPContent' installKBytes='625983' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBand_MagicContent' installKBytes='443654' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.GarageBandFactoryContent' installKBytes='13443' version='6.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iDVD' installKBytes='267648' version='7.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeAudioAnalysis' installKBytes='1492' version='11.1.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeCookie' installKBytes='238' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeFaceRecognition' installKBytes='4220' version='1.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeMediaBrowser' installKBytes='8490' version='2.5.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistration' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeRegistrationPost' installKBytes='110' version='11.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSlideshow_v2' installKBytes='123786' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iLifeSoundEffects_Loops' installKBytes='266756' version='2.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie' installKBytes='388092' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iMovie_PreviousFolder' installKBytes='113' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhoto' installKBytes='458199' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhotoContent' installKBytes='390756' version='9.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iPhotoLibraryUpgradeTool' installKBytes='24649' version='1.0.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.iWeb' installKBytes='327868' version='3.0.2.1.1203730862'/>
	<pkg-ref id='com.apple.pkg.ProAppRuntimeFlat' installKBytes='61457' version='6.0.1.1194400900'/>
	<pkg-ref id='com.apple.pkg.RAWCameraUpdate3' installKBytes='14821' version='3.2.1.1263389684'/>
</installer-gui-script>
