<?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) || !LogicalOr1(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/iWeb.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.0.4.0') > 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.0') &lt; 0) {
		return false;
	}
	return true;
}
function LogicalOr1(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.6.4') &lt; 0) {
		return false;
	}
	return true;
}
function BundleCheck3(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iWeb.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.0') &lt; 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.0.4.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="iWeb3.0.4" visible="BundleCheck3('/') &amp;&amp; LogicalOr1('/')">
        <pkg-ref id="iWebUpdate" auth="Root" packageIdentifier="com.apple.pkg.iWeb_304">iWeb_304.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie iWeb";
"SU_VERS" = "3.0.4";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich oraz 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.35">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px \'Lucida Grande\'}
    span.s1 {letter-spacing: 0.0px}
  </style>
</head>
<body>
<p class="p1"><span class="s1">Program iWeb 3.0.4</span></p>
<p class="p1"><span class="s1"> </span></p>
<p class="p1"><span class="s1">To uaktualnienie poprawia ogólną stabilność oraz rozwiązuje kilka problemów mniejszej wagi.</span></p>
<p class="p1"><span class="s1"> </span></p>
<p class="p1"><span class="s1">To uaktualnienie jest zalecane dla wszystkich użytkowników iWeb 3.</span></p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='iWebUpdate' installKBytes='328062' version='3.0.4.0.1.1203730862'/>
</installer-gui-script>