Page 2 of 4

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 17:56
by Robert Walker
rpmurray wrote:
michaln wrote:On the installation DVD, the file /System/Installation/Packages/OSInstall.mpkg can be unpacked ...
Yes, that's how I determined that the Mac Model Identifier needed to be presented to the VM so that OS X would install as a guest. In the case of OS X 10.7 and above you also need to present the motherboard ID.

I'm speculating that in the case of the OS X discs that came bundled with the Mac there might be additional checks the installer does since those discs would contain drivers to support new hardware features, etc., and Apple may have wanted to make sure they were only used on Macs that could support that.

Robert, if you want to do as michaln suggests then there's a write-up at 10.5: Bypass the installer's system requirements check.
Okay - I don't see any folder called System and a search doesn't turn up OSInstall.mpkg
Screen Shot 2014-11-06 at 15.52.14.png
Screen Shot 2014-11-06 at 15.52.14.png (105.74 KiB) Viewed 5359 times
I wonder if that's what the problem is, maybe it's a damaged disk with some of its content missing?\

This is the complete list of packages on the DVD, in a Finder search

Code: Select all

BluetoothSDK.pkg
CHUD.pkg
CoreAudioSDK.pkg
DevDocumentation.pkg
DeveloperTools.pkg
DeveloperToolsCLI.pkg
DeveloperToolsSystemSupport.pkg
DevExamples.pkg
DevSDK.pkg
DevToolsDocumentation.pkg
DistributedBuildsSupport.pkg
DVD or CD Sharing Setup.mpkg
FireWireSDK.pkg
gcc3.3.pkg
gcc3.3ADCDocs.pkg
gcc4.0.pkg
gcc4.0ADCDocs.pkg
gcc4.2.pkg
gcc4.2ADCDocs.pkg
JavaSDK.pkg
llvm-gcc4.2.pkg
MacOSX10.3.9.pkg
MacOSX10.4.Universal.pkg
MacOSX10.5.pkg
OpenGLApps.pkg
OpenGLSDK.pkg
Optional Installs.mpkg
OtherDevDocumentation.pkg
QuickTimeSDK.pkg
RelocatableScript.pkg
SystemScript.pkg
VersionedDeveloperToolsSystemSupport.pkg
WebKitSDK.pkg
WebObjects.mpkg
WebObjectsDevelopment.pkg
WebObjectsDocumentation.pkg
WebObjectsExamples.pkg
WebObjectsRuntime.pkg
X11Documentation.pkg
X11SDK.pkg
Xcode3.xExtras.pkg
XcodeTools.mpkg

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 18:25
by Robert Walker
rpmurray wrote: Could you attach a copy of the VB log from when you have the Model ID set to "MacBookPro5,1" and the CPUID set to 0001067a? There might be some clues in there to nail down what is happening.

Also, do you have another Mac you could use to try to make a cdr of the disc? The fact that it fails to make the cdr makes me wonder if whatever that problem is is also what it causing the install to fail when you're trying to install the OS as a guest.
Okay here is the VB Log -- I managed to get it to run this time though, with it set to 5,1 as far as the "OSX cannot be installed" (and same also with 5,2 - worked okay today)

The instructions I used were:

Code: Select all

VBoxManage modifyvm Leopard --cpuidset 00000001 0001067a 00000800 80000209 078bfbff
VBoxManage setextradata Leopard VBoxInternal/Devices/efi/0/Config/DmiSystemProduct "MacBookPro5,1”
where my virtual machine is called "Leopard"

and log attached

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 19:50
by michaln
Robert Walker wrote:Okay - I don't see any folder called System and a search doesn't turn up OSInstall.mpkg
You have to use the command line or tell Finder to show the files and directories that it doesn't show by default.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 19:55
by socratis
In the Terminal, type:

Code: Select all

defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 20:57
by Robert Walker
socratis wrote:In the Terminal, type:

Code: Select all

defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder
Thanks, I can see them now (am from Windows so often don't know how to do basic things on the Mac :) )

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 21:32
by Robert Walker
This is the file called Distribution in the OSXInstall.mpkg

Code: Select all

<?xml version="1.0"?>

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

	<options
		eraseOptionAvailable='true'
		hostArchitectures='ppc,i386'
		allow-external-scripts='yes'
	/>
	
	<title>MacOSX_Title</title>
	<license file="License.rtf" sla="EA0390"/>
	<welcome file='Welcome.rtfd'/>
        <conclusion file='Conclusion.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 < length; j++ ){
				if(machineType == badMachines[j]){
						return false;
				} 

			}
			
		}
	
		// require 867Mhz+
		if (system.sysctl("hw.cpufrequency") < 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) && (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 > (requiredRAM - 1));
}

	function installCheckScript(){
			
			try{
				var machineType = system.ioregistry.fromPath('IODeviceTree:/')['compatible'];
								
				if (system.files.fileExistsAtPath("/usr/libexec/cpu_check")) {
					if (system.run("/usr/libexec/cpu_check")) {
						my.result.message = " ";
						my.result.type = 'Fatal';
						return false;
					}
				} 
				
				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 < 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']) && 
						(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 && !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;
		}
		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' && 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="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 && hasNetInfo() && verCompare(10.3) >= 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() && 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') && upgrade_allowed()"
	enabled = "language_enabled('Japanese') && 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') && upgrade_allowed()"
	enabled = "language_enabled('German') && 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') && upgrade_allowed()"
	enabled = "language_enabled('French') && 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') && upgrade_allowed()"
	enabled = "language_enabled('Spanish') && 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') && upgrade_allowed()"
	enabled = "language_enabled('Italian') && 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') && upgrade_allowed()"
	enabled = "language_enabled('Dutch') && 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') && upgrade_allowed()"
	enabled = "language_enabled('da') && 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') && upgrade_allowed()"
	enabled = "language_enabled('fi') && 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') && upgrade_allowed()"
	enabled = "language_enabled('ko') && 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') && upgrade_allowed()"
	enabled = "language_enabled('no') && 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') && upgrade_allowed()"
	enabled = "language_enabled('ru') && upgrade_allowed()"
>
	<pkg-ref id="com.apple.MacOSX.lang.ru"/>	
	<pkg-ref id="com.apple.DeTier" active="!my.target.ignoreContents && verCompare(10.5) == -1 && 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') && upgrade_allowed()"
	enabled = "language_enabled('sv') && 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') && upgrade_allowed()"
	enabled = "language_enabled('pt') && 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') && upgrade_allowed()"
	enabled = "language_enabled('zh_CN') && 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') && upgrade_allowed()"
	enabled = "language_enabled('zh_TW') && 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') && upgrade_allowed()"
	enabled = "language_enabled('pt_PT') && 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') && upgrade_allowed()"
	enabled = "language_enabled('pl') && 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.BrotherPrinterDriversPreInstall"/>	
	<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.CanonPrinterDriversPreInstall"/>	
	<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.EpsonPrinterDriversPreInstall"/>	
	<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.HewlettPackardPrinterDriversPreInstall"/>	
	<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.LexmarkPrinterDriversPreInstall"/>	
	<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.RicohPrinterDriversPreInstall"/>	
	<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.XeroxPrinterDriversPreInstall"/>	
	<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.BrotherPrinterDriversPreInstall" auth='root'>file:./BrotherPrinterDriversPreInstall.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.CanonPrinterDriversPreInstall" auth='root'>file:./CanonPrinterDriversPreInstall.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.EpsonPrinterDriversPreInstall" auth='root'>file:./EpsonPrinterDriversPreInstall.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.HewlettPackardPrinterDriversPreInstall" auth='root'>file:./HewlettPackardPrinterDriversPreInstall.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.LexmarkPrinterDriversPreInstall" auth='root'>file:./LexmarkPrinterDriversPreInstall.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.RicohPrinterDriversPreInstall" auth='root'>file:./RicohPrinterDriversPreInstall.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.XeroxPrinterDriversPreInstall" auth='root'>file:./XeroxPrinterDriversPreInstall.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.3.1'/>
	<pkg-ref id='com.apple.MacOSX.lang.da' installKBytes='109782' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.de' installKBytes='124398' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.es' installKBytes='118182' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.fi' installKBytes='109598' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.fr' installKBytes='122158' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.it' installKBytes='112502' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.ja' installKBytes='124890' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.ko' installKBytes='118714' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.nl' installKBytes='113758' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.no' installKBytes='112962' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.pl' installKBytes='109270' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.pt' installKBytes='108050' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.pt_PT' installKBytes='108962' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.ru' installKBytes='116626' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.sv' installKBytes='112990' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.zh_CN' installKBytes='117006' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.MacOSX.lang.zh_TW' installKBytes='112866' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.ACL' installKBytes='114' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.AdditionalEssentials' installKBytes='71210' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.AdditionalFonts' installKBytes='144818' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.AdditionalSpeechVoices' installKBytes='714082' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.AddressBook' installKBytes='60346' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.AsianLanguagesSupport' installKBytes='80558' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.Automator' installKBytes='45866' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.BaseSystem' installKBytes='1353734' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.BootCamp' installKBytes='12794' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.BrotherPrinterDrivers' installKBytes='66878' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.BrotherPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.BSD' installKBytes='573946' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.CanonPrinterDrivers' installKBytes='507370' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.CanonPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.Directory' installKBytes='62462' version='1.0.0.2.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.DVDPlayer' installKBytes='51142' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.EpsonPrinterDrivers' installKBytes='1540586' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.EpsonPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.Essentials' installKBytes='1987510' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.FujiXeroxPrinterDrivers' installKBytes='3338' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.GutenprintPrinterDrivers' installKBytes='15706' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.HewlettPackardPrinterDrivers' installKBytes='789314' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.HewlettPackardPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.iCal' installKBytes='105434' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.iChat' installKBytes='122498' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.iPodSupport' installKBytes='1226' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.iTunes' installKBytes='150270' version='7.4.2.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.Java' installKBytes='166466' version='10.5.3.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.LexmarkPrinterDrivers' installKBytes='116846' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.LexmarkPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.Mail' installKBytes='304474' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.MediaFiles' installKBytes='127398' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.MigrationAssistant' installKBytes='101190' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.OSInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.OSUpgrade' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.OxfordDictionaries' installKBytes='132106' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.PodcastCapture' installKBytes='19974' version='1.0.0.2.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.RicohPrinterDrivers' installKBytes='15002' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.RicohPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
	<pkg-ref id='com.apple.pkg.Safari' installKBytes='71658' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.SamsungPrinterDrivers' installKBytes='5822' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.X11User' installKBytes='172394' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.XeroxPrinterDrivers' installKBytes='294402' version='10.5.3.1.1.1188305148'/>
	<pkg-ref id='com.apple.pkg.XeroxPrinterDriversPreInstall' installKBytes='0' version='10.5.3.1'/>
</installer-gui-script>

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 6. Nov 2014, 23:36
by Robert Walker
rpmurray wrote: Also, do you have another Mac you could use to try to make a cdr of the disc? The fact that it fails to make the cdr makes me wonder if whatever that problem is is also what it causing the install to fail when you're trying to install the OS as a guest.
That's a thought. I haven't got another Mac.

But I've got a Windows machine with an inbuilt DVD drive. On the Mac as it is a MacBook Air it has no inbuilt drive and I'm using a USB DVD drive - I suppose it could be part of the problem somehow.

I could make the cdr in Windows (if it works there) and then copy it over to my Mac machine.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 02:25
by Robert Walker
That worked, as a way to make an iso - hurray!

I mean - still got the "OS X cannot be installed" but now the virtual machine starts from an iso, instantly, will make the testing much simpler.

Made an iso on Windows, put it onto the Mac, and it worked just fine. I've now got two Leopard disks - the one I bought for £10 for 10.5.2 and the other one for 10.5.6. But neither is retail sadly. Done the 10.5.2 iso, and Just doing the 10.5.6 iso now.

Also just unpacked the iso to a folder as well using Disk Mounter.

So - presumably that means I can edit it. More later.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 03:51
by Robert Walker
Okay - just done an iso for 10.5.6 same way, worked fine. So - I can surely edit it now, if that is a way to solve the problem.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 03:54
by rpmurray
Robert Walker wrote:The instructions I used were:

Code: Select all

VBoxManage modifyvm Leopard --cpuidset 00000001 0001067a 00000800 80000209 078bfbff
VBoxManage setextradata Leopard VBoxInternal/Devices/efi/0/Config/DmiSystemProduct "MacBookPro5,1”
I did a quick scan of the log and noticed two things.

Code: Select all

00:00:00.601104 Installed Extension Packs:
00:00:00.601118   None installed!

00:00:00.729598   DmiSystemProduct        <string>  = "MacBookPro5,9" (cb=14)
I don't think the extension pack not being installed will cause the problem, but it wouldn't hurt to install it just in case. The second issue will put a crimp in things. You may want to shut down any running VMs, quit the VB application and then open the Leopard.vbox file with a text editor (TextEdit will work) to see if that's actually what's being sent.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 13:30
by Robert Walker
rpmurray wrote:
I did a quick scan of the log and noticed two things.

Code: Select all

00:00:00.601104 Installed Extension Packs:
00:00:00.601118   None installed!

00:00:00.729598   DmiSystemProduct        <string>  = "MacBookPro5,9" (cb=14)
I don't think the extension pack not being installed will cause the problem, but it wouldn't hurt to install it just in case. The second issue will put a crimp in things. You may want to shut down any running VMs, quit the VB application and then open the Leopard.vbox file with a text editor (TextEdit will work) to see if that's actually what's being sent.
Okay fixed both those things, it now shows it as "MacBookPro5,1" (or whatever). and shows the installed extension pack, still same message.

But I've got one thing I'm about to try - editing the OSInstall.mpkg.

I had an idea, what if I just edit those functions to always return true

Code: Select all

   function checkSupportedMachine(machineType){
   return true;
   }

function hasAtLeastRam(RAM) {
return true;
}

   function installCheckScript(){
           
         return true;
   }

   function volCheckScript(){
         var target = my.target;
         var destSystemVersion = target['systemVersion'];
         
          
         return true;
   }
So am just going to give that a go to see if it fixes it.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 15:45
by michaln
Could the CPU frequency check be failing? There actually isn't anything else in the script that looks like it'd fail. And the disc is *not* hardcoded to specific models.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 21:37
by Robert Walker
michaln wrote:Could the CPU frequency check be failing? There actually isn't anything else in the script that looks like it'd fail. And the disc is *not* hardcoded to specific models.
Okay - is there anything I can do with VirtualBox about this?

BTW I tried editing the mpkg, edited the script so that the functions always return true - and everything went fine except - that when I then used disk utility to convert the folder back to a cdr - that also worked fine, but when I attached it to the Leopard virtual machine, I got the message

"Failed to open the optical disk file ... "

"Could not get the storage format of the medium ... (VERR_NOT_SUPPORTED)"

Anyone know what that means or what I can do about it? Some problem with making the cdr from the folder?

Doesn't seem likely to be a problem with my editing, since it's an error message right away when I try to attach the cdr to the virtual machine, not attempting to run it yet at all.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 7. Nov 2014, 22:26
by michaln
Robert Walker wrote:"Could not get the storage format of the medium ... (VERR_NOT_SUPPORTED)"

Anyone know what that means or what I can do about it? Some problem with making the cdr from the folder?
Yes. Whatever you have there is not in the correct CD image format (ISO or dmg). Not related to your editing but rather creating an image from the modified files.

Re: 10.5.6 (Leopard) on 10.9, "OS X cannot be installed" err

Posted: 8. Nov 2014, 01:37
by Robert Walker
michaln wrote:
Robert Walker wrote:"Could not get the storage format of the medium ... (VERR_NOT_SUPPORTED)"

Anyone know what that means or what I can do about it? Some problem with making the cdr from the folder?
Yes. Whatever you have there is not in the correct CD image format (ISO or dmg). Not related to your editing but rather creating an image from the modified files.
Okay, seems that the cdr created by Disk Utility can't be loaded by VirtualBox.

This made it into one it can load:

Code: Select all

hdiutil makehybrid -iso -joliet -o Master.iso Master.cdr
from
http://forums.macrumors.com/showthread.php?t=220740

But - though it loaded, it then didn't get all the way through the scrolling command prompt commands, and again isn't a problem with my editing because was the same when I replaced the OSInstall.mpkg with the original version.

Anyone know how to make an iso or cdr from a folder in the Mac which Virtual Box can read?