All pastes #976642 Raw Edit

mpkg

public text v1 · immutable
·published 2008-04-08 10:31 UTC
rendered paste body
<?xml version="1.0"?>
<installer-gui-script minSpecVersion="1">

	<options eraseOptionAvailable="false" hostArchitectures="ppc,i386"/>
	
	<title>MacOSX_Title</title>
	<license file="License.rtf" sla="EA0390"/>
	<welcome file="Welcome.rtfd"/>

	<script>
        var minRam = 512;

	function checkSupportedMachine(machineType){
		// Fail on G3
		if (1 != system.sysctl('hw.vectorunit') ) {
			return false;
		}

		var badMachines = ['iMac','PowerBook1,1','PowerBook2,1', 'AAPL,Gossamer', 'AAPL,PowerMac G3', 'AAPL,PowerBook1998', 'AAPL,PowerBook1999'];
		
		if(machineType){
			var length = badMachines.length;
			
			// Fail if any of the compatible values match the list of badMachines
			for( var j = 0; j &lt; length; j++ ){
				if(machineType == badMachines[j]){
						return false;
				} 

			}
			
		}
	
		// require 867Mhz+
		if (system.sysctl("hw.cpufrequency") &lt; 866000000) {
			return false;	
		}
			
		return true;
	}
	
	function checkSupportedBootRom(machineType){
		var machinesNeedingROMUpdate = new Array();
		machinesNeedingROMUpdate['PowerMac2,1'] = 'f2';
		machinesNeedingROMUpdate['PowerMac2,2'] = '$0003.30f3';
		
		try{
			var bootROMEntry = system.ioregistry.matchingName('boot-rom','IODeviceTree');
			var bootROM;
			if ( bootROMEntry.length &gt; 0 ) {
				var bootROM = bootROMEntry[0]['BootROM-version'];
			} else {
				return true;
			}

			// Fail if any of the compatible values match the machine/ROM pairs that need updating
			for( k in machinesNeedingROMUpdate ){
				if((machineType == k) &amp;&amp; (bootROM == machinesNeedingROMUpdate[k])){						
					return false;
				}
			}
		} catch(e) {
			system.log('checkSupportedBootRom threw exception ' + e);
		}
		
		// if we can't find it, assume it's supported
		return true;
	}

function hasAtLeastRam(RAM) {
        var requiredRAM = (RAM * 1024 * 1024);
        var actualRAM = system.sysctl('hw.memsize');

        return (actualRAM &gt; (requiredRAM - 1));
}
	function installCheckScript(){
			
			try{
				var machineType = system.ioregistry.fromPath('IODeviceTree:/')['compatible'];
				
				if ( typeof(machineType) == "string") {
						if(!checkSupportedMachine(machineType)){
							my.result.message = system.localizedStringWithFormat('IC_Machine_message');
							my.result.type = 'Fatal';
							return false;
						}
			
						if(!checkSupportedBootRom(machineType)){
							my.result.message = system.localizedStringWithFormat('IC_Firmware_message');
							my.result.type = 'Fatal';
							return false;
						}
				}
				else {
					for(var i = 0;i &lt; machineType.length; i++){		
						if(!checkSupportedMachine(machineType[i])){
							my.result.message = system.localizedStringWithFormat('IC_Machine_message');
							my.result.type = 'Fatal';
							return false;
						}
			
						if(!checkSupportedBootRom(machineType[i])){
							my.result.message = system.localizedStringWithFormat('IC_Firmware_message');
							my.result.type = 'Fatal';
							return false;
						}
					}
				}
				if(!hasAtLeastRam(minRam)){
					my.result.message = system.localizedStringWithFormat('IC_RAM_message');
					my.result.type = 'Fatal';
					return false;
				}
				
			}catch (e){
				system.log('installCheckScript threw exception ' + e);
			}
			
			return true;
	}
	function volCheckScript(){
			var target = my.target;
			var destSystemVersion = target['systemVersion'];
			
			if(target.mountpoint == '/'){
				my.result.message = system.localizedString('VC_Boot_message');
				my.result.type = 'Fatal';
				
				return false;
			}
		
			if(destSystemVersion){
				
				//Fail if system on disk is less than 10.3
				if(-1 == system.numericalCompare(destSystemVersion['ProductVersion'],'10.3')){
					my.result.message = system.localizedString('VC_Upgrade_message');
					my.result.type = 'MustNotUpgrade';
					return false;
				}
				
				//Fail if system on disk is tier3
				if( system.files.fileExistsAtPath(my.target.mountpoint+'/var/db/.AppleTier3Language') ){
					my.result.message = system.localizedString('VC_Upgrade_message');
					my.result.type = 'MustNotUpgrade';
					return false;
				}
			
				//Fail if system on disk is greater than what is being installed
				if(-1 == system.numericalCompare(system.version['ProductVersion'],destSystemVersion['ProductVersion'])){
					my.result.message = system.localizedString('VC_Newer_message');
					my.result.type = 'MustNotUpgrade';
				
					return false;
				}

				//Fail if system on disk is of a same build group (i.e. 9A466-&gt;9A466 is allowed but 9A466-&gt;9Axxx is not)
				if( (system.version['ProductBuildVersion'] != destSystemVersion['ProductBuildVersion']) &amp;&amp; 
						(system.version['ProductBuildVersion'].substring(0,2) == destSystemVersion['ProductBuildVersion'].substring(0,2))){
					my.result.message = system.localizedString('VC_Upgrade_message');
					my.result.type = 'MustNotUpgrade';
				
					return false;
				}
			
				//If the Essential OS bits are not selected, then we can't really install anyways
				if(!choices['EssentialSystemSoftwareGroup'].selected){
					my.result.message = system.localizedString('VC_Newer_message');
					my.result.type = 'MustNotUpgrade';
				
					return false;
				}
			
				if( typeof(isFNI) == "undefined" )
				{
					//Fail if system on disk is greater than what is being installed
					if(destSystemVersion.isServer){
						my.result.message = system.localizedString('VC_ServerVersion_message');
						my.result.type = 'MustNotUpgrade';
						return false;
					}
				}
			}			
			
			return true;
	}
	//This function checks if a language is already installed on disk.
	//This function could potentially be expensive, but the buffer cache
	//usually means it isn't. 
	function language_installed(langKey){
		var installed = false;
		
		//If we are erasing, then nothing will be installed
		//on the disk
		if(my.target.ignoreContents){
			return installed;
		}
		
		var constructedPath = my.target.mountpoint + '/System/Library/PrivateFrameworks/SetupAssistant.framework/Versions/A/Resources/';
			
		constructedPath += langKey + ".lproj";
			
		if(system.files.fileExistsAtPath(constructedPath)){
			installed = true;
		}else{
			installed = false;
		}

		return installed;
	}
	
	function language_running(langKey){
		var appleLanguages = system.defaults['AppleLanguages'];
	
	
		if(!appleLanguages || (appleLanguages.length == 0))
				return ((langKey == 'English') || (langKey == 'en'))
		
		return (langKey == appleLanguages[0]);
	}
	
	//Global Language Required Cache, this speeds up the many calls to this function
	gLanguageRequired = {
	};
	
	//Function returns true if the langKey is required, it uses a cache so that the logic doesn't
	//have to be run hundreds of times
	function language_required(langKey){
		
		if(! (gLanguageRequired[langKey])){
			var required = false;
			
			//If the exact same package is on disk, then this language is not required
			if(my.choice.packages.length &amp;&amp; !my.target.ignoreContents){
				var thisPackage = my.choice.packages[0];
				var receipt     = my.target.receiptForIdentifier(thisPackage.identifier);
			
				if(receipt){
					//system.log('package = ' + thisPackage.identifier + ':' + thisPackage.version);
					//system.log('receipt = ' + receipt.identifier + ':' + receipt.version);
					if(0 == system.numericalCompare(thisPackage.version,receipt.version)){
						required =  false;
					}
				}
			}

			if(language_installed(langKey) || language_running(langKey)){
				required =  true;
			}
			
			gLanguageRequired[langKey] = required;
		}
		
		return gLanguageRequired[langKey];
	}
	
	function language_enabled(langKey){
		var enabled = !(language_required(langKey));
		
		if(false == enabled){
			my.choice.tooltip = system.localizedString('TT_Language_Required_message');
		}
		
		return enabled;
	}

	function language_selected(langKey){
		var selected = my.choice.selected || language_required(langKey);

		return selected;
	}

	function verCompare(checkVer){
		var sysVer = my.target['systemVersion'];
		if (sysVer) {
			return system.numericalCompare(sysVer['ProductVersion'],checkVer);
		}
		return -1;
	}

	function upgrade_allowed(){
		var argv = upgrade_allowed.arguments;
		var upgradable = true;
		var upgradeAction = my.choice.packageUpgradeAction;
		
		if(argv.length &gt; 0) { 
			upgradeAction = eval('choices.' + argv[0] + '.packageUpgradeAction');	
		}
		
		if((upgradeAction == 'downgrade') || (upgradeAction == 'mixed')){
			my.choice.tooltip = system.localizedString('TT_Newer_Package_Installed_message');	
			upgradable = false;
		}
		
		return upgradable;
	}

	function isServer(){
		if(!my.target['systemVersion'].isServer){  
			return false;
		}
		return true;
	}

	function systemHasDVD(){
		var obj = system.ioregistry.matchingClass("IODVDBlockStorageDriver");
		if (obj) {
			return true;
		}
		var obj2 = system.ioregistry.matchingName("ApplePlatformEnabler","IOService");
		if (obj2 ) {
			if ( obj2[0]['DVDSupported'] ) {
				return true;
			}
		}
		return false;
	}

	function isIntel()
	{
		if ( system.sysctl('hw.machine') != 'x86' &amp;&amp; system.sysctl('hw.byteorder') != '1234')
		{
			return false;
		}
		return true;
	}
	
	function hasNetInfo() {
		var path = my.target.mountpoint + "/private/var/db/netinfo/local.nidb";
	    if (system.files.fileExistsAtPath(path)) {
			return true;
		}
		
		return false;
	}

	
	</script>

	<installation-check script=""/>
	<volume-check script=""/>

	<choices-outline>
    <line choice="EssentialSystemSoftware">
		<line choice="EssentialSystemSoftwareGroup"/>
		<line choice="AdditionalEssentials"/>
		<line choice="MediaFiles"/>
		<line choice="MigrationAssistant"/>
		<line choice="Mail"/>
		<line choice="AddressBook"/>
		<line choice="iCal"/>
		<line choice="Automator"/>
		<line choice="DVDPlayer"/>
		<line choice="iTunes"/>
		<line choice="iChat"/>
		<line choice="Java"/>
		<line choice="Safari"/>
		<line choice="OxfordDictionaries"/>
    </line>
    <line choice="AdditionalFonts"/>
    <line choice="X11"/>
	<line choice="ACL"/>
	<line choice="OSInstallScripts"/>
    <line choice="Patches">
	<line choice="Extensions">
	    <line choice="ALCinject"/>
	    <line choice="AppleAC97Audio"/>
	    <line choice="AppleAHCIPort"/>
	    <line choice="AppleHDA"/>
	    <line choice="ApplePS2Controller"/>
	    <line choice="AppleSMBIOS"/>
	    <line choice="IOATAFamily"/>
	    <line choice="IONetworkingFamily"/>
	    <line choice="IOUSBFamily"/>
	    <line choice="JMicronATA"/>
	    <line choice="dsmos"/>
	</line>
        <line choice="drivers">
        	<line choice="vga">
                	<line choice="nvidia">
                        	<line choice="natit"/>
                        	<line choice="titan"/>
                                <line choice="gf8800"/>
				<line choice="nvinject">
					<line choice="nvi128"/>
                                        <line choice="nvi256"/>
                                        <line choice="nvi320"/>
                                        <line choice="nvi512"/>
                                        <line choice="nvi640"/>
                                        <line choice="nvi768"/>
				</line>
                	</line>
			<line choice="ati">
		 	       <line choice="atiinject"/>
			       <line choice="atix1950"/>
			</line>
			<line choice="intel">
                                <line choice="gmax3100"/>
                        </line>
			<line choice="agpgart">
			       <line choice="agp2.1"/>
			       <line choice="agp2.2"/>
			       <line choice="agp2.4.9"/>
			</line>
		</line>
		<line choice="network">
	                <line choice="m8001"/>
                        <line choice="r8139"/>
        	        <line choice="intel8255x"/>
                	<line choice="viarhine"/>
                        <line choice="bcm440x"/>
                	<line choice="80211.10.4.5"/>
                	<line choice="wireless.patch"/>
		</line>
        </line>
        <line choice="P4PD">
	</line>
	<line choice="PlugIns">
	    <line choice="ACPIPS2Nub"/>
	    <line choice="AppleIntelPIIXATA"/>
	</line>
	<line choice="DeviceIdentification">
	    <line choice="AtherosWirelessAdapter"/>
	    <line choice="BroadcomWirelessAdapter"/>
	    <line choice="GenericPS2NubVersionFix"/>
	    <line choice="GenericSATADriveIconFix"/>
	    <line choice="IntelICHandPIIXController"/>
	    <line choice="IntelICH7toICH9AHCIController"/>
	    <line choice="IntelICH8andICH9Controller"/>
	    <line choice="IntelLPCInterface"/>
	    <line choice="IntelMemoryController"/>
	    <line choice="JMicronController"/>
	    <line choice="MarvellNetworkAdapter"/>
	    <line choice="NVIDIAAC97Audio"/>
	    <line choice="NVIDIAGeForce6and7SeriesGraphics"/>
	    <line choice="NVIDIAGeForcenForceChipsetFix"/>
	</line>
	<line choice="Boot"/>
	<line choice="Cleanup"/>
    </line>
</choices-outline>

<choice id="EssentialSystemSoftware" title="EssentialSystemSoftware_title" description="EssentialSystemSoftware_description" start_enabled="false">
</choice>

<choice id="EssentialSystemSoftwareGroup" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.BaseSystem"/>
	<pkg-ref id="com.apple.pkg.Essentials"/>
	<pkg-ref id="com.apple.pkg.BSD"/>
	<pkg-ref id="com.apple.pkg.iPodSupport"/>
        <pkg-ref id="com.apple.pkg.PodcastCapture"/>
        <pkg-ref id="com.apple.pkg.Directory"/>
	<pkg-ref id="com.apple.pkg.JavaTools"/>
</choice>

<choice id="AddressBook" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.AddressBook"/>
</choice>

<choice id="AdditionalEssentials" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.AdditionalEssentials"/>
	<pkg-ref id="com.apple.pkg.OSUpgrade" active="!my.target.ignoreContents &amp;&amp; hasNetInfo() &amp;&amp; verCompare(10.3) &gt;= 0"/>
</choice>


<choice id="DVDPlayer" start_visible="false" start_selected="systemHasDVD() &amp;&amp; upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.DVDPlayer"/>
</choice>

<choice id="iCal" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.iCal"/>
</choice>

<choice id="Automator" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.Automator"/>
</choice>

<choice id="iChat" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.iChat"/>
</choice>

<choice id="iTunes" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.iTunes"/>
</choice>

<choice id="Java" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.Java"/>
</choice>

<choice id="MediaFiles" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.MediaFiles"/>
</choice>

<choice id="Mail" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.Mail"/>
</choice>

<choice id="OxfordDictionaries" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.OxfordDictionaries"/>
</choice>

<choice id="Safari" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.Safari"/>
</choice>

<choice id="ACL" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.ACL"/>
</choice>

<choice id="OSInstallScripts" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.OSInstall"/>
</choice>

<choice id="MigrationAssistant" start_visible="false" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.MigrationAssistant"/>
</choice>
<choice id="AdditionalFonts" title="AdditionalFonts_title" description="AdditionalFonts_description" start_enabled="upgrade_allowed()" start_selected="my.choice.enabled">
	<pkg-ref id="com.apple.pkg.AdditionalFonts"/>	
</choice>




























<choice id="X11" title="X11_title" description="X11_description" start_enabled="my.choice.packageUpgradeAction == 'clean' || my.target.ignoreContents" start_selected="upgrade_allowed()">
	<pkg-ref id="com.apple.pkg.X11User"/>	
</choice>
<choice
	id="Patches"
	title="JaS OsX86 10.5.2 SSE2 SSE3"
	description="Patches"
	start_enabled="true"
	start_selected="true"
>
</choice>
<choice
	id="Extensions"
	title="Patched Drivers"
	description="Extensions"
	start_enabled="true"
	start_selected="true"
>
</choice>
<choice
	id="ALCinject"
	title="ALCinject"
	description="ALCinject 1.0.0d1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.ALCinject' installKBytes='88' version='1.0' auth='root'>file:./Patches/ALCinject.pkg</pkg-ref>
</choice>
<choice
	id="AppleAC97Audio"
	title="AppleAC97Audio"
	description="AC97 Audio Driver 1.0.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleAC97Audio' installKBytes='292' version='1.0' auth='root'>file:./Patches/AppleAC97Audio.pkg</pkg-ref>
</choice>
<choice
	id="AppleACPIPlatform"
	title="AppleACPIPlatform"
	description="Apple ACPI Platform Expert 1.0.3"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleACPIPlatform' installKBytes='744' version='1.0' auth='root'>file:./Patches/AppleACPIPlatform.pkg</pkg-ref>
</choice>
<choice
	id="AppleAHCIPort"
	title="AppleAHCIPort"
	description="AppleAHCI 1.1.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleAHCIPort' installKBytes='228' version='1.0' auth='root'>file:./Patches/AppleAHCIPort.pkg</pkg-ref>
</choice>
<choice
	id="AppleAPIC"
	title="AppleAPIC"
	description="I/O APIC Interrupt Controller Driver 1.1.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleAPIC' installKBytes='52' version='1.0' auth='root'>file:./Patches/AppleAPIC.pkg</pkg-ref>
</choice>
<choice
	id="AppleHDA"
	title="AppleHDA"
	description="Apple HDA Driver 1.4.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleHDA' installKBytes='1248' version='1.0' auth='root'>file:./Patches/AppleHDA.pkg</pkg-ref>
</choice>
<choice
	id="ApplePS2Controller"
	title="ApplePS2Controller"
	description="Apple PS/2 Controller 1.1.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.ApplePS2Controller' installKBytes='1308' version='1.0' auth='root'>file:./Patches/ApplePS2Controller.pkg</pkg-ref>
</choice>
<choice
	id="AppleSMBIOS"
	title="AppleSMBIOS"
	description="System Management BIOS Driver 1.0.13"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleSMBIOS' installKBytes='52' version='1.0' auth='root'>file:./Patches/AppleSMBIOS.pkg</pkg-ref>
</choice>
<choice
	id="IOATAFamily"
	title="IOATAFamily"
	description="IOATAFamily 1.7.2"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IOATAFamily' installKBytes='1060' version='1.0' auth='root'>file:./Patches/IOATAFamily.pkg</pkg-ref>
</choice>
<choice
	id="IONetworkingFamily"
	title="IONetworkingFamily"
	description="I/O Kit Networking Family 1.6.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IONetworkingFamily' installKBytes='2492' version='1.0' auth='root'>file:./Patches/IONetworkingFamily.pkg</pkg-ref>
</choice>
<choice
	id="IOUSBFamily"
	title="IOUSBFamily"
	description="I/O Kit USB Family 3.0.8"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IOUSBFamily' installKBytes='3988' version='1.0' auth='root'>file:./Patches/IOUSBFamily.pkg</pkg-ref>
</choice>
<choice
	id="JMicronATA"
	title="JMicronATA"
	description="JMicron JMB ATA Driver 1.0.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.JMicronATA' installKBytes='172' version='1.0' auth='root'>file:./Patches/JMicronATA.pkg</pkg-ref>
</choice>
<choice
	id="NVinject"
	title="NVinject"
	description="NVinject 0.1.5"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.NVinject' installKBytes='48' version='1.0' auth='root'>file:./Patches/NVinject.pkg</pkg-ref>
</choice>
<choice
	id="Natit"
	title="Natit"
	description="Natit 1.0.0d1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.Natit' installKBytes='84' version='1.0' auth='root'>file:./Patches/Natit.pkg</pkg-ref>
</choice>
<choice
	id="dsmos"
	title="dsmos"
	description="dsmos 1.0.0d1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.dsmos' installKBytes='36' version='1.0' auth='root'>file:./Patches/dsmos.pkg</pkg-ref>
</choice>
<choice
	id="PlugIns"
	title="PlugIns"
	description="PlugIns"
	start_enabled="true"
	start_selected="true"
>
</choice>
<choice
	id="ACPIPS2Nub"
	title="ACPIPS2Nub"
	description="ACPIPS2Nub 1.0.0d1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.ACPIPS2Nub' installKBytes='80' version='1.0' auth='root'>file:./Patches/ACPIPS2Nub.pkg</pkg-ref>
</choice>
<choice
	id="AppleIntelPIIXATA"
	title="AppleIntelPIIXATA"
	description="Apple Intel ICHx/PIIX ATA Driver 2.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AppleIntelPIIXATA' installKBytes='116' version='1.0' auth='root'>file:./Patches/AppleIntelPIIXATA.pkg</pkg-ref>
</choice>
<choice
	id="DeviceIdentification"
	title="Device Identification"
	description="Device Identification"
	start_enabled="true"
	start_selected="true"
>
</choice>
<choice
	id="AtherosWirelessAdapter"
	title="Atheros Wireless Adapter"
	description="AirPortAtheros 3.1.1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.AtherosWirelessAdapter' installKBytes='4' version='1.0' auth='root'>file:./Patches/AtherosWirelessAdapter.pkg</pkg-ref>
</choice>
<choice
	id="BroadcomWirelessAdapter"
	title="Broadcom Wireless Adapter"
	description="AppleAirPortBrcm4311 3.1.1"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.BroadcomWirelessAdapter' installKBytes='4' version='1.0' auth='root'>file:./Patches/BroadcomWirelessAdapter.pkg</pkg-ref>
</choice>
<choice
	id="GenericPS2NubVersionFix"
	title="Generic PS2 Nub Version Fix"
	description="Apple ACPI Platform Expert 1.0.3"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.GenericPS2NubVersionFix' installKBytes='4' version='1.0' auth='root'>file:./Patches/GenericPS2NubVersionFix.pkg</pkg-ref>
</choice>
<choice
	id="GenericSATADriveIconFix"
	title="Generic SATA Drive Icon Fix"
	description="IOAHCIBlockStorage 1.0.9"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.GenericSATADriveIconFix' installKBytes='4' version='1.0' auth='root'>file:./Patches/GenericSATADriveIconFix.pkg</pkg-ref>
</choice>
<choice
	id="IntelICHandPIIXController"
	title="Intel ICH and PIIX Controller"
	description="Apple Intel ICHx/PIIX ATA Driver 2.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IntelICHandPIIXController' installKBytes='16' version='1.0' auth='root'>file:./Patches/IntelICHandPIIXController.pkg</pkg-ref>
</choice>
<choice
	id="IntelICH7toICH9AHCIController"
	title="Intel ICH7 to ICH9 AHCI Controller"
	description="AppleAHCI 1.1.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IntelICH7toICH9AHCIController' installKBytes='8' version='1.0' auth='root'>file:./Patches/IntelICH7toICH9AHCIController.pkg</pkg-ref>
</choice>
<choice
	id="IntelICH8andICH9Controller"
	title="Intel ICH8 and ICH9 Controller"
	description="Apple Intel ICHx/PIIX ATA Driver 2.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IntelICH8andICH9Controller' installKBytes='16' version='1.0' auth='root'>file:./Patches/IntelICH8andICH9Controller.pkg</pkg-ref>
</choice>
<choice
	id="IntelLPCInterface"
	title="Intel LPC Interface"
	description="AppleLPC 1.2.3"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IntelLPCInterface' installKBytes='4' version='1.0' auth='root'>file:./Patches/IntelLPCInterface.pkg</pkg-ref>
</choice>
<choice
	id="IntelMemoryController"
	title="Intel Memory Controller"
	description="ACPI_SMC_PlatformPlugin 3.1.5"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.IntelMemoryController' installKBytes='28' version='1.0' auth='root'>file:./Patches/IntelMemoryController.pkg</pkg-ref>
</choice>
<choice
	id="JMicronController"
	title="JMicron Controller"
	description="JMicron JMB ATA Driver 1.0.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.JMicronController' installKBytes='4' version='1.0' auth='root'>file:./Patches/JMicronController.pkg</pkg-ref>
</choice>
<choice
	id="MarvellNetworkAdapter"
	title="Marvell Network Adapter"
	description="Apple-Marvell Yukon-2 Gigabit Ethernet Driver 3.1.4"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.MarvellNetworkAdapter' installKBytes='16' version='1.0' auth='root'>file:./Patches/MarvellNetworkAdapter.pkg</pkg-ref>
</choice>
<choice
	id="NVIDIAAC97Audio"
	title="NVIDIA AC97 Audio"
	description="Intel ICHx AC97 Audio Driver 1.0.0"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.NVIDIAAC97Audio' installKBytes='4' version='1.0' auth='root'>file:./Patches/NVIDIAAC97Audio.pkg</pkg-ref>
</choice>
<choice
	id="NVIDIAGeForce6and7SeriesGraphics"
	title="NVIDIA GeForce 6 and 7 Series Graphics"
	description="NVIDIA NV40 Resman Kernel Extension 1.5.26"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.NVIDIAGeForce6and7SeriesGraphics' installKBytes='4' version='1.0' auth='root'>file:./Patches/NVIDIAGeForce6and7SeriesGraphics.pkg</pkg-ref>
</choice>
<choice
	id="NVIDIAGeForcenForceChipsetFix"
	title="NVIDIA GeForce nForce Chipset Fix"
	description="NVIDIA GeForce Kernel Extension 1.5.26"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.NVIDIAGeForcenForceChipsetFix' installKBytes='4' version='1.0' auth='root'>file:./Patches/NVIDIAGeForcenForceChipsetFix.pkg</pkg-ref>
</choice>
<choice
	id="P4PD"
	title="Support for SSE2 and SSE3 Pentium 4 and Pentium D Processors"
	description="Select all the packages in this section if you have one of these cpus"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='JaS.OsX86.1052UniKernel.machkernel.pkg' installKBytes='16104' version='1.0' auth='root'>file:./Patches/machkernel.pkg</pkg-ref>

	<pkg-ref id='com.slipstream.pkg.IOPlatformPluginFamily' installKBytes='1840' version='1.0' auth='root'>file:./Patches/IOPlatformPluginFamily.pkg</pkg-ref>

	<pkg-ref id='com.slipstream.pkg.AppleACPIPlatform' installKBytes='744' version='1.0' auth='root'>file:./Patches/AppleACPIPlatform.pkg</pkg-ref>

	<pkg-ref id='com.slipstream.pkg.AppleAPIC' installKBytes='744' version='1.0' auth='root'>file:./Patches/AppleAPIC.pkg</pkg-ref>

	<pkg-ref id='com.slipstream.pkg.AppleSMC' installKBytes='108' version='1.0' auth='root'>file:./Patches/AppleSMC.pkg</pkg-ref>
</choice>
<choice
	id="Boot"
	title="Darwin x/86 boot"
	description="Boot 132"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.Boot' installKBytes='16104' version='1.0' auth='root'>file:./Patches/Boot.pkg</pkg-ref>
</choice>
<choice
	id="Cleanup"
	title="Cleanup"
	description="Cleanup Tue Mar 11 14:25:37 EDT 2008"
	start_enabled="true"
	start_selected="true"
>
	<pkg-ref id='com.slipstream.pkg.Cleanup' installKBytes='1' version='1.0' auth='root'>file:./Patches/Cleanup.pkg</pkg-ref>
</choice>

	<choice id="drivers" title="iATKOS v1.0i VGA/Networking Drivers" description="iATKOS v1.0i Drivers" start_visible="true" start_enabled="true">
</choice>

        <choice id="vga" title="VGA" description="VGA drivers." start_visible="true" start_enabled="true">
</choice>

        <choice id="intel" title="Intel" description="Intel VGA drivers." start_visible="true" start_enabled="true">
</choice>
        <choice id="network" title="Network" description="Network card drivers." start_visible="true" start_enabled="true">
</choice>

        <choice id="nvidia" title="nVidia" description="nVidia VGA drivers" start_visible="true" start_enabled="true">
</choice>

        <choice id="ati" title="ATI" description="ATI VGA drivers" start_visible="true" start_enabled="true">
</choice>

        <choice id="agpgart" title="AGPGart" description="AGPGart" start_visible="true" start_enabled="true">
</choice>

        <choice id="nvinject" title="NVinject" description="NVinject for GeForce 5/6/7/8 series VGA cards. Select the one that points the RAM of your GeForce." start_visible="true" start_enabled="true">
</choice>
<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.gmax3100" auth='root'>file:./gmax3100.pkg</pkg-ref>
<choice title="GMA X3100"
description="Intel GMA X3100 driver by paulicat."
start_enabled="true" id="gmax3100" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.gmax3100"/></choice>


<pkg-ref version="1.0" installKBytes="88" id="com.uphuck.pkg.natitdual0.2" auth='root'>file:./natitdual0.2.pkg</pkg-ref>
<choice title="Natit"
description="Natit dual v0.2 for nVidia VGA by DiaboliK."
start_enabled="true" id="natit" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.natitdual0.2"/></choice>


<pkg-ref version="1.0" installKBytes="88" id="com.uphuck.pkg.titan" auth='root'>file:./titan.pkg</pkg-ref>
<choice title="Titan"
description="Titan driver for nVidia VGA by omni."
start_enabled="true" id="titan" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.titan"/></choice>


<pkg-ref version="1.0" installKBytes="1652" id="com.uphuck.pkg.geforce8800" auth='root'>file:./geforce8800.pkg</pkg-ref>
<choice title="GeForce 8800"
description="GeForce.kext for GeForce 8800 cards with device ID 0193."
start_enabled="true" id="gf8800" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.geforce8800"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi128" auth='root'>file:./nvi128.pkg</pkg-ref>
<choice title="128MB"
description="NVinject for 128MB cards."
start_enabled="true" id="nvi128" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi128"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi256" auth='root'>file:./nvi256.pkg</pkg-ref>
<choice title="256MB"
description="NVinject for 256MB cards."
start_enabled="true" id="nvi256" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi256"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi320" auth='root'>file:./nvi320.pkg</pkg-ref>
<choice title="320MB"
description="NVinject for 320MB cards."
start_enabled="true" id="nvi320" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi320"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi512" auth='root'>file:./nvi512.pkg</pkg-ref>
<choice title="512MB"
description="NVinject for 512MB cards."
start_enabled="true" id="nvi512" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi512"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi640" auth='root'>file:./nvi640.pkg</pkg-ref>
<choice title="640MB"
description="NVinject for 640MB cards."
start_enabled="true" id="nvi640" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi640"/></choice>


<pkg-ref version="1.0" installKBytes="76" id="com.uphuck.pkg.nvi768" auth='root'>file:./nvi768.pkg</pkg-ref>
<choice title="768MB"
description="NVinject for 768MB cards."
start_enabled="true" id="nvi768" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.nvi768"/></choice>


<pkg-ref version="1.0" installKBytes="1764" id="com.uphuck.pkg.agpgart2.1" auth='root'>file:./agpgart2.1.pkg</pkg-ref>
<choice title="AGPGart 2.1"
description="AGPGart 2.1"
start_enabled="true" id="agp2.1" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.agpgart2.1"/></choice>


<pkg-ref version="1.0" installKBytes="1076" id="com.uphuck.pkg.agpgart2.2" auth='root'>file:./agpgart2.2.pkg</pkg-ref>
<choice title="AGPGart 2.2"
description="AGPGart 2.2"
start_enabled="true" id="agp2.2" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.agpgart2.2"/></choice>


<pkg-ref version="1.0" installKBytes="1300" id="com.uphuck.pkg.agpgart2.4.9" auth='root'>file:./agpgart2.4.9.pkg</pkg-ref>
<choice title="AGPGart 2.4.9"
description="AGPGart 2.4.9"
start_enabled="true" id="agp2.4.9" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.agpgart2.4.9"/></choice>


<pkg-ref version="1.0" installKBytes="140" id="com.uphuck.pkg.atiinject" auth='root'>file:./atiinject.pkg</pkg-ref>
<choice title="ATIinject for X1600"
description="ATIinject for X1600. For other cards, please read ATIinject.kext.txt in /Library/Temp/ folder for usage of ATIinject driver."
start_enabled="true" id="atiinject" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.atiinject"/></choice>

<pkg-ref version="1.0" installKBytes="16148" id="com.uphuck.pkg.atix1950" auth='root'>file:./atix1950.pkg</pkg-ref>
<choice title="ATI X1950 XT"
description="ATI X1900 and X1950 driver."
start_enabled="true" id="atix1950" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.atix1950"/></choice>


<pkg-ref version="1.0" installKBytes="1344" id="com.uphuck.pkg.Intel8255x" auth='root'>file:./Intel8255x.pkg</pkg-ref>
<choice title="Intel Pro/100 VE"
description="8255x chipset Intel Pro/100 VE ethernet driver."
start_enabled="true" id="intel8255x" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.Intel8255x"/></choice>


<pkg-ref version="1.0" installKBytes="100" id="com.uphuck.pkg.viarhine" auth='root'>file:./viarhine.pkg</pkg-ref>
<choice title="VIA Rhine"
description="VIA Rhine ethernet driver."
start_enabled="true" id="viarhine" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.viarhine"/></choice>


<pkg-ref version="1.0" installKBytes="108" id="com.uphuck.pkg.yukon88e8001" auth='root'>file:./yukon88e8001.pkg</pkg-ref>
<choice title="Marvell Yukon 88E8001"
description="Marvell Yukon 88E8001 ethernet driver."
start_enabled="true" id="m8001" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.yukon88e8001"/></choice>

<pkg-ref version="1.0" installKBytes="1064" id="com.uphuck.pkg.8139" auth='root'>file:./8139.pkg</pkg-ref>
<choice title="Realtek 8139"
description="Realtek 8139 ethernet driver by orByte."
start_enabled="true" id="r8139" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.8139"/></choice>



<pkg-ref version="1.0" installKBytes="168" id="com.uphuck.pkg.bcm440x" auth='root'>file:./bcm440x.pkg</pkg-ref>
<choice title="Broadcom 440x"
description="Broadcom 440x ethernet driver."
start_enabled="true" id="bcm440x" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.bcm440x"/></choice>


<pkg-ref version="1.0" installKBytes="1404" id="com.uphuck.pkg.80211.10.4.5" auth='root'>file:./80211.10.4.5.pkg</pkg-ref>
<choice title="IO80211Family.kext 10.4.5"
description="IO80211Family.kext from 10.4.5. This may be needed for some wireless ethernet cards."
start_enabled="true" id="80211.10.4.5" start_selected="false" start_visible="true"><pkg-ref id="com.uphuck.pkg.80211.10.4.5"/></choice>


<pkg-ref version="1.0" installKBytes="28" id="com.uphuck.wireless.patch" auth='root'>file:./wireless.patch.pkg</pkg-ref>
<choice title="Wireless patch"
description="This patch may be needed for some wireless network cards, especially for those who use IO80211Family.kext from 10.4.5."
start_enabled="true" id="wireless.patch" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.wireless.patch"/></choice>


<choice id="ntfs3g" title="NTFS-3G" description="Open source, freely available read/write NTFS driver." start_visible="true" start_enabled="true">
</choice>


<pkg-ref version="1.0" installKBytes="896" id="com.uphuck.pkg.macfusecore" auth='root'>file:./macfusecore.pkg</pkg-ref>
<choice title="MacFUSE Core"
description="MacFUSE Core Binary v.0.3.0. User-space FUSE library v2.6.5."
start_enabled="true" id="macfusecore" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.macfusecore"/></choice>


<pkg-ref version="1.0" installKBytes="72" id="com.google.macfuse.tools" auth='root'>file:./MacFUSETools.pkg</pkg-ref>
<choice title="MacFUSE Tools"
description="MacFUSE Tools."
start_enabled="true" id="macfusetools" start_visible="true" start_selected="false"><pkg-ref id="com.google.macfuse.tools"/></choice>


<pkg-ref version="1.0" installKBytes="2440" id="com.uphuck.pkg.ntfs3g" auth='root'>file:./ntfs3g.pkg</pkg-ref>
<choice title="NTFS-3G"
description="NTFS-3G v1.516 for Mac OS X."
start_enabled="true" id="ntfs3gx" start_visible="true" start_selected="false"><pkg-ref id="com.uphuck.pkg.ntfs3g"/></choice>


<pkg-ref version="1.0" installKBytes="4144" id="net.sourceforge.ext2fs.ext2" auth='root'>file:./Ext2FS.pkg</pkg-ref>
<choice title="Ext2fs"
description="Ext2fs, Ext3fs v1.4d4. Driver for linux ext2 and ext3fs. It's better to mount target partitions as read-only, mounting rw may cause kernel panic. This driver is still experimental, filesystem corruption is possible. It may be needed to execute fsck on target partitions on Linux to mount them on OS X."
start_enabled="true" id="ext2fs" start_visible="true" start_selected="false"><pkg-ref id="net.sourceforge.ext2fs.ext2"/></choice>



	<pkg-ref id="com.apple.pkg.AdditionalFonts" auth="root">file:./AdditionalFonts.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.AddressBook" auth="root">file:./AddressBook.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.BaseSystem" auth="root">file:./BaseSystem.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.BSD" auth="root">file:./BSD.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.DVDPlayer" auth="root">file:./DVDPlayer.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Essentials" auth="root">file:./Essentials.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.iPodSupport" auth="root">file:./iPodSupport.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.iCal" auth="root">file:./iCal.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Automator" auth="root">file:./Automator.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.AdditionalEssentials" auth="root">file:./AdditionalEssentials.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.OSUpgrade" auth="root">file:./OSUpgrade.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.iChat" auth="root">file:./iChat.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.iTunes" auth="root">file:./iTunes.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Java" auth="root">file:./Java.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Mail" auth="root">file:./Mail.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.MediaFiles" auth="root">file:./MediaFiles.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.MigrationAssistant" auth="root">file:./MigrationAssistant.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.OSInstall" auth="root">file:./OSInstall.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Safari" auth="root">file:./Safari.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.OxfordDictionaries" auth="root">file:./OxfordDictionaries.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.X11User" auth="root">file:./X11User.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.PodcastCapture" auth="root">file:./PodcastCapture.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.Directory" auth="root">file:./Directory.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.JavaTools" auth="root">file:./JavaTools.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.ACL" auth="root">file:./ACL.pkg</pkg-ref>
	


	<pkg-ref id="com.apple.pkg.ACL" installKBytes="114" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.AdditionalEssentials" installKBytes="70786" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.AdditionalFonts" installKBytes="144818" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.AddressBook" installKBytes="52174" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Automator" installKBytes="45830" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.BaseSystem" installKBytes="1317286" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.BSD" installKBytes="562374" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Directory" installKBytes="62474" version="1.0.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.DVDPlayer" installKBytes="48394" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Essentials" installKBytes="1936302" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.iCal" installKBytes="99922" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.iChat" installKBytes="118238" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.iPodSupport" installKBytes="1226" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.iTunes" installKBytes="138142" version="7.4.2.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Java" installKBytes="166466" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.JavaTools" installKBytes="38806" version="1.0.0.9000000000.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Mail" installKBytes="301742" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.MediaFiles" installKBytes="127398" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.MigrationAssistant" installKBytes="99650" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.OSInstall" installKBytes="0" version="10.5.0.1"/>
	<pkg-ref id="com.apple.pkg.OSUpgrade" installKBytes="0" version="10.5.0.1"/>
	<pkg-ref id="com.apple.pkg.OxfordDictionaries" installKBytes="132106" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.PodcastCapture" installKBytes="19982" version="1.0.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.Safari" installKBytes="60666" version="10.5.0.1.1.1188305148"/>
	<pkg-ref id="com.apple.pkg.X11User" installKBytes="144954" version="10.5.0.1.1.1188305148"/>
<script>
function hwbeModelCheck() {

    try {
        var modelProp = system.sysctl('hw.model');
    } 
    catch(e) {
        system.log('hwbeInstallCheck threw exception ' + e);
    }

    var machineCount = hwbeSupportedMachines.length;

    for ( var i = 0; i &lt; machineCount; i++ ) {
        if ( modelProp == hwbeSupportedMachines[i] ) {
            return true;
        }
    }
    
    return false;

}

function hwbeInstallCheck() {
    if ( !hwbeModelCheck() ) {
        my.result.message = system.localizedStringWithFormat('hwbe_machine_message');
        my.result.type = 'Fatal';
        return false;
    }

    return installCheckScript(); 

}
</script><script>function isModel(goodModels) {

	try {
		var model = system.sysctl('hw.model');
	}
	catch(e) {
		system.log('isModel threw exception ' + e);
	}
	
	var machineCount = goodModels.length;

    for ( var i = 0; i &lt; machineCount; i++ ) {
        if ( model == goodModels[i] ) {
            return true;
        }
    }
   return false;
}
</script><script>
// These functions are designed to detect 
// if localized MSOffice Test Drive language
// codes are in use and display/select MSOTD appropriately.
    
function office_language_running(){
	var msofficelanguages = [
					'Japanese','ja',
					'Italian','it',
					'French','fr',
					'German','de',
					'Spanish','es',
					'Dutch','nl',
					'sv'
				];
				
	for ( var i = 0; i &lt; msofficelanguages.length; i++ ) {
        if ( language_running(msofficelanguages[i]) ) {
            return true;
        }
    }
    return false;
}

// Here we use objects dependent upon which distribution
// file we're using. ( Bundle or OS X )

function MSlanguage_running(langCodeObject){
	if ( isBundleDist ){
		var msofficelanguages = [
						langCodeObject.bundle
					];
	
	}
	else{
		var msofficelanguages = [
						langCodeObject.os
					];
	}
	
	for ( var i = 0; i &lt; msofficelanguages.length; i++ ) {
        if ( language_running(msofficelanguages[i]) ) {
            return true;
        }
    }
    return false;
}
</script><script>    
// This function loads Objects which are designed
// to store localized MSOffice Test Drive language
// codes.

function MSTDCode(bundleCode, OSCode){
	this.bundle = bundleCode;
	this.os = OSCode;
}
	var MSTDCodeEnglish		= new MSTDCode("en", "English");
	var MSTDCodeJapanese		= new MSTDCode("ja", "Japanese");
	var MSTDCodeGerman		= new MSTDCode("de", "German");
	var MSTDCodeFrench		= new MSTDCode("fr", "French");
	var MSTDCodeSwedish		= new MSTDCode("sv", "sv");
	var MSTDCodeDutch		= new MSTDCode("nl", "Dutch");
	var MSTDCodeItalian		= new MSTDCode("it", "Italian");
	var MSTDCodeSpanish		= new MSTDCode("es", "Spanish");

</script><script>
// These functions prevent iLife apps from installing over newer versions.
function NeedsiDVD() {
    var path = my.target.mountpoint + "/Applications/iDVD.app";
    var bundle = system.files.bundleAtPath(path);
    var version = BundleGetCompositeVersion5(bundle);
		
    if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
		
    if (system.compareVersions(version, "7.0.2.0.0") &gt;= 0) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }
				
    return true;
}

function NeedsGarageBand() {
    var path = my.target.mountpoint + "/Applications/GarageBand.app";
    var bundle = system.files.bundleAtPath(path);
    var version = BundleGetCompositeVersion5(bundle);
		
    if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
		
    if (system.compareVersions(version, "4.1.2.0.0") &gt;= 0) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }
				
    return true;
}

function NeedsiWeb() {
    var path = my.target.mountpoint + "/Applications/iWeb.app";
    var bundle = system.files.bundleAtPath(path);
    var version = BundleGetCompositeVersion5(bundle);
		
    if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
		
    if (system.compareVersions(version, "2.0.4.0.0") &gt;= 0) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }
				
    return true;
}

function NeedsiMovie() {
    var path = my.target.mountpoint + "/Applications/iMovie.app";
    var bundle = system.files.bundleAtPath(path);
    var version = BundleGetCompositeVersion5(bundle);
		
    if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
		
    if (system.compareVersions(version, "7.1.2.0.0") &gt;= 0) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }
				
    return true;
}

function NeedsiPhoto() {
    var path = my.target.mountpoint + "/Applications/iPhoto.app";
    var bundle = system.files.bundleAtPath(path);
    var version = BundleGetCompositeVersion5(bundle);
		
    if (!version || system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iLife.forceUpdate')) return true;
		
    if (system.compareVersions(version, "7.1.3.0.0") &gt;= 0) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }
				
    return true;
}

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 _PadVersionString(version, tupleCount) {
    if (version == null)
        version = "0";

    var components = version.split(".");
    if (components.length &gt; tupleCount)
        components = components.slice(0, tupleCount);
    else
        for (; components.length &lt; tupleCount; )
            components.push("0");

    return components.join(".");
}

 function isNotDowngrade() {
    var action = my.choice.packageUpgradeAction;
    if ((action == 'downgrade') || (action == 'mixed')) {
        my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
        return false;
    }

    return true;
}

</script><script>
	var hwbeSupportedMachines = ['MacBook4,1'];
</script><script>
	var isBundleDist = false;
</script></installer-gui-script>