<?xml version="1.0" encoding="UTF-8"?>
<installer-gui-script minSpecVersion="1">
    <options customize="never" hostArchitectures="ppc,i386" rootVolumeOnly="false"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <script>
function VolumeCheck(prefix) {
	if (system.env.OS_INSTALL == 1) return true;
	var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
	my.result.message = system.localizedString('ERROR_0');
	if (!BundleCheck0(my.target.mountpoint) || !PlistCheck1(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function BundleCheck0(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
	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.0') > 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.0') &lt; 0) {
		return false;
	}
	return true;
}
function PlistCheck1(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.6.3') &lt; 0) {
		return false;
	}
	return true;
}
function BundleCheck2(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.0') &lt; 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.1.0.0') >= 0) {
		return false;
	}
	return true;
}
function BundleCheck3(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Library/Frameworks/iLifeSlideshow.framework');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '2.1.0') >= 0) {
		return false;
	}
	return true;
}
function BundleCheck4(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/System/Library/PrivateFrameworks/iLifeMediaBrowser.framework');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '2.5.2') >= 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="iPhotoUpdate910" visible="BundleCheck2('/')">
        <pkg-ref id="iPhotoUpdate91" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.1Update" active="BundleCheck0('/')">iPhoto9.1Update.pkg</pkg-ref>
        <pkg-ref id="iPhotoContentUpdate91" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.1ContentUpdate" active="BundleCheck0('/')">iPhoto9.1ContentUpdate.pkg</pkg-ref>
        <pkg-ref id="iLifeSlideshow_v2" auth="Root" packageIdentifier="com.apple.pkg.iLifeSlideShow_v2" active="BundleCheck3('/')">iLifeSlideshow_v2.pkg</pkg-ref>
        <pkg-ref id="iLifeMediaBrowser" auth="Root" packageIdentifier="com.apple.pkg.iLifeMediaBrowser" active="BundleCheck4('/')">iLifeMediaBrowser.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie iPhoto";
"SU_VERS" = "9.1";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich oraz serwerów";
"SU_DESCRIPTION" = '<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"></meta></HEAD>
<BODY><FONT FACE="Lucida Grande">
<P>
To uaktualnienie dodaje nowe opcje druku do programu iPhoto ’11. Zwiększa również stabilność działania programów oraz rozwiązuje kilka mniej istotnych błędów.
<ul>
	<li>Można tworzyć i zamawiać kalendarze w iPhoto.</li>
	<li>Dostępne są dodatkowe motywy wypukłych kart.</li>
	<li>Poprawiony został błąd, który uniemożliwiał prawidłowe importowanie do wydarzeń w iPhoto nagrań wideo pobieranych z MobileMe lub Flickr.</li>
</ul>
</P><P>
To uaktualnienie zalecane jest dla wszystkich użytkowników iPhoto ’11.
</P>
</FONT></BODY></HTML>
';
]]></strings>
    </localization>

	<pkg-ref id='iLifeMediaBrowser' installKBytes='8553' version='2.5.2.0.1.1203730862'/>
	<pkg-ref id='iLifeSlideshow_v2' installKBytes='123790' version='2.1.0.0.1.1203730862'/>
	<pkg-ref id='iPhotoContentUpdate91' installKBytes='20478' version='9.1.0.0.1.1203730862'/>
	<pkg-ref id='iPhotoUpdate91' installKBytes='86641' version='9.1.0.0.1.1203730862'/>
</installer-gui-script>