<?xml version="1.0" encoding="UTF-8"?>
<installer-gui-script minSpecVersion="1">
    <options hostArchitectures="ppc,i386" customize="never" rootVolumeOnly="true"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	if (system.compareVersions(system.version.ProductVersion, '10.6') &lt; 0 || system.compareVersions(system.version.ProductVersion, '10.7') >= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.6');
		my.result.type = 'Fatal';
		return false;
	}
	if (system.compareVersions(system.version.ProductVersion, '10.6.8') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_1', '10.6.8');
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
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_3');
	if (!NotTier3(my.target.mountpoint) || !DestSystemVersion(my.target.mountpoint) || !ExistingNotTooNew(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function NotTier3(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_4');
	if (system.files.fileExistsAtPath(prefix + '/var/db/.AppleTier3Language') == 0) {
		return true;
	}
	return false;
}
function DestSystemVersion(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_5');
	if (!my.target.systemVersion) {
		return false;
	}
	return true;
}
function ExistingNotTooNew(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_6');
	var plist = system.files.plistAtPath(prefix + '/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Info.plist');
	if (!plist) {
		return true;
	}
	var plistKeyValue = plist['CFBundleShortVersionString'];
	if (!plistKeyValue) {
		return true;
	}
	if (system.compareVersions(plistKeyValue, '13.9.8') > 0) {
		return false;
	}
	return true;
}
function NeedsUpgrade(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Info.plist');
	if (!plist) {
		return true;
	}
	var plistKeyValue = plist['CFBundleShortVersionString'];
	if (!plistKeyValue) {
		return true;
	}
	if (system.compareVersions(plistKeyValue, '13.9.8') >= 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="JavaForMacOSX10.6" start_selected="true" visible="NeedsUpgrade('/')">
        <pkg-ref id="JavaForMacOSX10.6" auth="Root" packageIdentifier="com.apple.pkg.JavaForMacOSX10.6">JavaForMacOSX10.6.pkg</pkg-ref>
        <pkg-ref id="JavaSecurity" auth="Root" packageIdentifier="com.apple.pkg.JavaSecurity">JavaSecurity.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie 17 Java dla systemu Mac OS X 10.6";
"SU_VERS" = "17.0";
"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.35">
  <style type="text/css">
    body { font: 11.0px "Lucida Grande"; }
    p { margin-left: 0.0px; margin-top: 0.0px; }
  </style>
</head>
<body>
<p>Java dla Mac OS X 10.6, uaktualnienie 17 poprawia bezpieczeństwo, niezawodność i zgodność, uaktualniając środowisko Java SE 6 do wersji 1.6.0_65. To uaktualnienie wprowadza możliwość konfigurowania ustawień wtyczki Java dla poszczególnych witryn w Safari w wersji 5.1.9 lub nowszej.</p>
<p>Przed zainstalowaniem tego uaktualnienia zamknij wszystkie przeglądarki Internetu i programy Java.</p>
<p>Zobacz <a href="http://support.apple.com/kb/HT5946?viewlocale=pl_PL">http://support.apple.com/kb/HT5946?viewlocale=pl_PL</a>, aby uzyskać więcej informacji o tym uaktualnieniu.</p>
<p>Zobacz <a href="http://support.apple.com/kb/HT1222?viewlocale=pl_PL">http://support.apple.com/kb/HT1222?viewlocale=pl_PL</a>, aby uzyskać informacje o zabezpieczeniach zawartych w tym uaktualnieniu.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='JavaForMacOSX10.6' installKBytes='76724' version='10.6.0.17.1.1247562015'/>
	<pkg-ref id='JavaSecurity' installKBytes='885' version='1.0.0.0.1.1247562015'/>
</installer-gui-script>