<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options customize="never" hostArchitectures="ppc,i386" rootVolumeOnly="true"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	my.result.message = system.localizedString('ERROR_0');
	if (!PlistCheck0("/") || !Not1("/") || !LogicalAnd3("/") || !FileCheck6("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function PlistCheck0(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.6.8') &lt; 0) {
		return false;
	}
	return true;
}
function Not1(prefix) {
	if (!(PlistCheck2(prefix))) {
		return true;
	}
	return false;
}
function PlistCheck2(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_2');
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.7') &lt; 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.7.3') >= 0) {
		return false;
	}
	return true;
}
function LogicalAnd3(prefix) {
	if (BundleCheck4(prefix) &amp;&amp; BundleCheck5(prefix)) {
		return true;
	}
	return false;
}
function BundleCheck4(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.1.0') &lt; 0) {
		return false;
	}
	return true;
}
function BundleCheck5(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_4');
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.2.3.0') > 0) {
		return false;
	}
	return true;
}
function FileCheck6(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_5');
	if (system.files.fileExistsAtPath(prefix + '/Applications/iPhoto.app/Contents/_MASReceipt/receipt') == 0) {
		return true;
	}
	return false;
}
function BundleCheck7(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.1.0') &lt; 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.2.3.0') >= 0) {
		return false;
	}
	return true;
}
function BundleCheck8(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Library/Frameworks/iLifeSlideshow.framework');
	if (!bundle) {
		return true;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return true;
	}
	if (system.compareVersions(bundleKeyValue, '2.3.0.0') >= 0) {
		return false;
	}
	return true;
}
</script>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="SoftwareUpdate">
        <line choice="su"/>
    </choices-outline>
    <choices-outline>
        <line choice="su"/>
    </choices-outline>
    <choice id="su" title="SU_TITLE" versStr="SU_VERS" description="SU_DESCRIPTION" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="iPhotoUpdate" visible="BundleCheck7('/')">
        <pkg-ref id="iPhotoUpdate" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.2.3Update" active="LogicalAnd3('/')">iPhoto9.2.3Update.pkg</pkg-ref>
        <pkg-ref id="iPhotoContentUpdate" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.2.3ContentUpdate" active="LogicalAnd3('/')">iPhoto9.2.3ContentUpdate.pkg</pkg-ref>
        <pkg-ref id="iLSS" auth="Root" packageIdentifier="com.apple.pkg.iLifeSlideshow_v2" active="BundleCheck8('/')">iLifeSlideshow_v2.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie iPhoto";
"SU_VERS" = "9.2.3";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich i serwerów";
"SU_DESCRIPTION" = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="1038.36">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'; min-height: 13.0px}
    p.p3 {margin: 0.0px 0.0px 12.0px 0.0px; padding: 0; font: 11.0px \'Lucida Grande\'}
    li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    li.li2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'; min-height: 13.0px}
    span.s1 {text-decoration: underline ; color: #0000ee}
    span.Apple-tab-span {white-space:pre}
    ul.ul1 {list-style-type: disc; margin-bottom: 0px;}
  </style>
</head>
<body>
	<p class="p3"><b>Co nowego w wersji 9.2.3:</b></p>
	<ul class="ul1">
		<li class="li1">poprawia ogólną stabilność programu;</li>
		<li class="li1">rozwiązuje problem, który mógł powodować nieoczekiwane zamknięcie iPhoto na systemach z wieloma kontami użytkowników.</li>
	</ul>
	<br/>
	<p class="p3">Zawarte w wersjach od 9.2 do 9.2.2:</p>
	<ul class="ul1">
		<li class="li1">można teraz usuwać zdjęcia ze strumienia zdjęć;</li>
		<li class="li1">rozwiązano problemy ze zgodnością z usługą iCloud i systemem iOS 5;</li>
		<li class="li1">między zdjęciami w widoku powiększenia jednego zdjęcia można teraz nawigować, energicznie przesuwając palec w lewo lub w prawo;</li>
		<li class="li1">wcześniej zaimportowane zdjęcia są teraz wyświetlane w osobnej sekcji okna importowania;</li>
		<li class="li1">motywy książki/kalendarza i kategorie karty w widoku karuzeli można teraz wybierać za pomocą menu podręcznego;</li>
		<li class="li1">usunięto problem, który mógł powodować nieprawidłowe drukowanie niektórych stron książek;</li>
		<li class="li1">pokazy slajdów i książki są teraz prawidłowo zachowywane po przebudowaniu biblioteki.</li>
	</ul>
	<br/>
	<p class="p3">To uaktualnienie jest zalecane dla wszystkich użytkowników iPhoto \'11.</p>
</body>
</html>';
]]></strings>
    </localization>

	<pkg-ref id='iLSS' installKBytes='80200' version='2.3.0.0.1.1263389684'/>
	<pkg-ref id='iPhotoContentUpdate' installKBytes='58137' version='9.2.3.0.1.1263389684'/>
	<pkg-ref id='iPhotoUpdate' installKBytes='296988' version='9.2.3.0.1.1263389684'/>
</installer-gui-script>