All pastes #751699 Raw Edit

original

public text v1 · immutable
#751699 ·published 2007-10-27 17:04 UTC
rendered paste body
<?xml version="1.0"?>

<installer-gui-script minSpecVersion='1'>

	<options
		eraseOptionAvailable='true'
		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 = ['MacBook3,1','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 > 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->9A466 is allowed but 9A466->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 > 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;
		}
		return false;
	}

	function isIntel()
	{
		if ( system.sysctl('hw.machine') != 'x86' &amp;&amp; system.sysctl('hw.byteorder') != '1234')
		{
			return false;
		}
		return true;
	}

	
	</script>

	<installation-check script="installCheckScript()"/>
	<volume-check script="volCheckScript()"/>

	<choices-outline>
    <line choice="EssentialSystemSoftware">
		<line choice="EssentialSystemSoftwareGroup"/>
		<line choice="AdditionalEssentials"/>
		<line choice="AdditionalSpeechVoices"/>
		<line choice="AsianLanguagesSupport"/>
		<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="PrinterDriversGroup">
      <line choice="Brother_Printer_Drivers"/>
      <line choice="Canon_Printer_Drivers"/>
      <line choice="Epson_Printer_Drivers"/>
      <line choice="HP_Printer_Drivers"/>
      <line choice="Lexmark_Printer_Drivers"/>
      <line choice="Guten_Printer_Drivers"/>
      <line choice="Ricoh_Printer_Drivers"/>
      <line choice="Xerox_Printer_Drivers"/>
      <line choice="FujiXerox_Printer_Drivers"/>
      <line choice="Samsung_Printer_Drivers"/>
    </line>
    <line choice="AdditionalFonts"/>
    <line choice="LanguageTranslations">
      <line choice="Japanese"/>
      <line choice="German"/>
      <line choice="French"/>
      <line choice="Spanish"/>
      <line choice="Italian"/>
      <line choice="Dutch"/>
      <line choice="Danish"/>
      <line choice="Finnish"/>
      <line choice="Korean"/>
      <line choice="Norwegian"/>
      <line choice="Russian"/>
      <line choice="Swedish"/>
      <line choice="BrazilianPortuguese"/>
      <line choice="SimplifiedChinese"/>
      <line choice="TraditionalChinese"/>
      <line choice="Portuguese"/>
      <line choice="Polish"/>
    </line> 
    <line choice="X11"/>
	<line choice="ACL"/>
	<line choice="OSInstallScripts"/>
  </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.BootCamp" active="isIntel()"/>
	<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; verCompare(10.5) == -1 &amp;&amp; verCompare(10.3) &gt;= 0"/>
</choice>

<choice 
	id="AsianLanguagesSupport"
	start_visible="false"
	start_selected="upgrade_allowed()"
>
	<pkg-ref id="com.apple.pkg.AsianLanguagesSupport"/>
</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="AdditionalSpeechVoices"
	start_visible="false"
	start_selected="upgrade_allowed()"
>
	<pkg-ref id="com.apple.pkg.AdditionalSpeechVoices"/>
</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="LanguageTranslations"
	title="LanguageTranslations_title"
	description="LanguageTranslations_description"
>
</choice>

<choice 
	id="Japanese"
	title="Japanese_title"
	description="Japanese_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('Japanese') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('Japanese') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.ja"/>	
</choice>

<choice 
	id="German"
	title="German_title"
	description="German_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('German') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('German') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.de"/>	
</choice>

<choice 
	id="French"
	title="French_title"
	description="French_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('French') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('French') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.fr"/>	
</choice>
<choice 
	id="Spanish"
	title="Spanish_title"
	description="Spanish_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('Spanish') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('Spanish') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.es"/>	
</choice>

<choice 
	id="Italian"
	title="Italian_title"
	description="Italian_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('Italian') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('Italian') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.it"/>	
</choice>

<choice 
	id="Dutch"
	title="Dutch_title"
	description="Dutch_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('Dutch') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('Dutch') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.nl"/>	
</choice>

<choice 
	id="Danish"
	title="Danish_title"
	description="Danish_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('da') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('da') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.da"/>	
</choice>

<choice 
	id="Finnish"
	title="Finnish_title"
	description="Finnish_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('fi') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('fi') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.fi"/>	
</choice>

<choice 
	id="Korean"
	title="Korean_title"
	description="Korean_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('ko') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('ko') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.ko"/>	
</choice>

<choice 
	id="Norwegian"
	title="Norwegian_title"
	description="Norwegian_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('no') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('no') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.no"/>	
</choice>

<choice 
	id="Russian"
	title="Russian_title"
	description="Russian_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('ru') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('ru') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.ru"/>	
	<pkg-ref id="com.apple.DeTier" active="!my.target.ignoreContents &amp;&amp; verCompare(10.5) == -1 &amp;&amp; system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/Finder.app/Contents/Resources/ru.lproj')"/>	
</choice>

<choice 
	id="Swedish"
	title="Swedish_title"
	description="Swedish_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('sv') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('sv') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.sv"/>	
</choice>

<choice 
	id="BrazilianPortuguese"
	title="BrazilianPortuguese_title"
	description="BrazilianPortuguese_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('pt') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('pt') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.pt"/>	
</choice>

<choice 
	id="SimplifiedChinese"
	title="SimplifiedChinese_title"
	description="SimplifiedChinese_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('zh_CN') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('zh_CN') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.zh_CN"/>	
</choice>

<choice 
	id="TraditionalChinese"
	title="TraditionalChinese_title"
	description="TraditionalChinese_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('zh_TW') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('zh_TW') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.zh_TW"/>	
</choice>

<choice 
	id="Portuguese"
	title="Portuguese_title"
	description="Portuguese_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('pt_PT') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('pt_PT') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.pt_PT"/>	
</choice>

<choice 
	id="Polish"
	title="Polish_title"
	description="Polish_description"
	start_selected="my.target.ignoreContents || !system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/SystemVersion.plist')"
	selected = "language_selected('pl') &amp;&amp; upgrade_allowed()"
	enabled = "language_enabled('pl') &amp;&amp; upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.pl"/>	
</choice>

<choice 
	id="PrinterDriversGroup"
	title="PrinterDriversGroup_title"
	description="PrinterDriversGroup_description"
>
</choice>

<choice 
	id="Brother_Printer_Drivers"
	title="Brother_Printer_Drivers_title"
	description="Brother_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.BrotherPrinterDrivers"/>	
</choice>

<choice 
	id="Canon_Printer_Drivers"
	title="Canon_Printer_Drivers_title"
	description="Canon_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.CanonPrinterDrivers"/>	
</choice>

<choice 
	id="Epson_Printer_Drivers"
	title="Epson_Printer_Drivers_title"
	description="Epson_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.EpsonPrinterDrivers"/>	
</choice>

<choice 
	id="HP_Printer_Drivers"
	title="HP_Printer_Drivers_title"
	description="HP_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.HewlettPackardPrinterDrivers"/>	
</choice>

<choice 
	id="Lexmark_Printer_Drivers"
	title="Lexmark_Printer_Drivers_title"
	description="Lexmark_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.LexmarkPrinterDrivers"/>	
</choice>

<choice 
	id="Guten_Printer_Drivers"
	title="Guten_Printer_Drivers_title"
	description="Guten_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.GutenprintPrinterDrivers"/>	
</choice>

<choice 
	id="Ricoh_Printer_Drivers"
	title="Ricoh_Printer_Drivers_title"
	description="Ricoh_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.RicohPrinterDrivers"/>	
</choice>

<choice 
	id="Xerox_Printer_Drivers"
	title="Xerox_Printer_Drivers_title"
	description="Xerox_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.XeroxPrinterDrivers"/>	
</choice>

<choice 
	id="FujiXerox_Printer_Drivers"
	title="FujiXerox_Printer_Drivers_title"
	description="FujiXerox_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.FujiXeroxPrinterDrivers"/>	
</choice>

<choice 
	id="Samsung_Printer_Drivers"
	title="Samsung_Printer_Drivers_title"
	description="Samsung_Printer_Drivers_description"
	start_enabled="upgrade_allowed()"
	start_selected="my.choice.enabled"
>
	<pkg-ref id="com.apple.pkg.SamsungPrinterDrivers"/>	
</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>

	<pkg-ref id="com.apple.pkg.AdditionalFonts" auth='root'>file:./AdditionalFonts.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.AdditionalSpeechVoices" auth='root'>file:./AdditionalSpeechVoices.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.AddressBook" auth='root'>file:./AddressBook.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.AsianLanguagesSupport" auth='root'>file:./AsianLanguagesSupport.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.BaseSystem" auth='root'>file:./BaseSystem.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.BrotherPrinterDrivers" auth='root'>file:./BrotherPrinterDrivers.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.pt" auth='root'>file:./BrazilianPortuguese.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.BSD" auth='root'>file:./BSD.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.CanonPrinterDrivers" auth='root'>file:./CanonPrinterDrivers.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.da" auth='root'>file:./Danish.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.nl" auth='root'>file:./Dutch.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.DVDPlayer" auth='root'>file:./DVDPlayer.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.EpsonPrinterDrivers" auth='root'>file:./EpsonPrinterDrivers.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.BootCamp" auth='root'>file:./BootCamp.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.fi" auth='root'>file:./Finnish.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.fr" auth='root'>file:./French.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.de" auth='root'>file:./German.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.GutenprintPrinterDrivers" auth='root'>file:./GutenprintPrinterDrivers.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.HewlettPackardPrinterDrivers" auth='root'>file:./HewlettPackardPrinterDrivers.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.MacOSX.lang.it" auth='root'>file:./Italian.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.iTunes" auth='root'>file:./iTunes.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.ja" auth='root'>file:./Japanese.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.Java" auth='root'>file:./Java.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.ko" auth='root'>file:./Korean.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.LexmarkPrinterDrivers" auth='root'>file:./LexmarkPrinterDrivers.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.MacOSX.lang.no" auth='root'>file:./Norwegian.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.ru" auth='root'>file:./Russian.pkg</pkg-ref>
	<pkg-ref id="com.apple.DeTier" auth='root'>file:./DeTier.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.OSInstall" auth='root'>file:./OSInstall.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.RicohPrinterDrivers" auth='root'>file:./RicohPrinterDrivers.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.MacOSX.lang.zh_CN" auth='root'>file:./SimplifiedChinese.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.es" auth='root'>file:./Spanish.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.pt_PT" auth='root'>file:./Portuguese.pkg</pkg-ref>
        <pkg-ref id="com.apple.MacOSX.lang.pl" auth='root'>file:./Polish.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.sv" auth='root'>file:./Swedish.pkg</pkg-ref>
	<pkg-ref id="com.apple.MacOSX.lang.zh_TW" auth='root'>file:./TraditionalChinese.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.X11User" auth='root'>file:./X11User.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.XeroxPrinterDrivers" auth='root'>file:./XeroxPrinterDrivers.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.FujiXeroxPrinterDrivers" auth='root'>file:./FujiXeroxPrinterDrivers.pkg</pkg-ref>
	<pkg-ref id="com.apple.pkg.SamsungPrinterDrivers" auth='root'>file:./SamsungPrinterDrivers.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.DeTier' installKBytes='0' version='10.5.0.1'/>
	<pkg-ref id='com.apple.MacOSX.lang.da' installKBytes='110650' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.de' installKBytes='125398' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.es' installKBytes='117878' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.fi' installKBytes='110606' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.fr' installKBytes='123106' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.it' installKBytes='112994' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.ja' installKBytes='123166' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.ko' installKBytes='117542' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.nl' installKBytes='114634' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.no' installKBytes='113838' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.pl' installKBytes='110866' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.pt' installKBytes='108678' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.pt_PT' installKBytes='110574' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.ru' installKBytes='117614' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.sv' installKBytes='114062' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.zh_CN' installKBytes='117926' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.MacOSX.lang.zh_TW' installKBytes='114226' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.ACL' installKBytes='114' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.AdditionalEssentials' installKBytes='74102' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.AdditionalFonts' installKBytes='144818' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.AdditionalSpeechVoices' installKBytes='714082' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.AddressBook' installKBytes='52142' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.AsianLanguagesSupport' installKBytes='80446' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Automator' installKBytes='45762' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.BaseSystem' installKBytes='1285354' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.BootCamp' installKBytes='13006' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.BrotherPrinterDrivers' installKBytes='65570' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.BSD' installKBytes='562298' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.CanonPrinterDrivers' installKBytes='500034' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Directory' installKBytes='62474' version='1.0.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.DVDPlayer' installKBytes='48354' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.EpsonPrinterDrivers' installKBytes='1540586' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Essentials' installKBytes='1961666' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.FujiXeroxPrinterDrivers' installKBytes='3338' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.GutenprintPrinterDrivers' installKBytes='15706' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.HewlettPackardPrinterDrivers' installKBytes='790778' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.iCal' installKBytes='99886' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.iChat' installKBytes='118126' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.iPodSupport' installKBytes='1226' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.iTunes' installKBytes='110602' version='7.4.2.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Java' installKBytes='165954' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.JavaTools' installKBytes='38806' version='1.0.0.9000000000.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.LexmarkPrinterDrivers' installKBytes='334386' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Mail' installKBytes='301726' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.MediaFiles' installKBytes='127546' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.MigrationAssistant' installKBytes='80174' version='10.5.0.1.1.1192168948'/>
	<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.1192168948'/>
	<pkg-ref id='com.apple.pkg.PodcastCapture' installKBytes='19982' version='1.0.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.RicohPrinterDrivers' installKBytes='15002' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.Safari' installKBytes='60646' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.SamsungPrinterDrivers' installKBytes='5822' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.X11User' installKBytes='119918' version='10.5.0.1.1.1192168948'/>
	<pkg-ref id='com.apple.pkg.XeroxPrinterDrivers' installKBytes='294402' version='10.5.0.1.1.1192168948'/>
</installer-gui-script>