<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options hostArchitectures="ppc,i386" customize="never"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	my.result.message = system.localizedString('ERROR_0');
	if (!NoExistingMASVersion("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function NoExistingMASVersion(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
	if (system.files.fileExistsAtPath(prefix + '/Applications/Remote Desktop.app/Contents/_MASReceipt/receipt') == 0) {
		return true;
	}
	return false;
}
function VolumeCheck(prefix) {
	if (system.env.OS_INSTALL == 1) return true;
	var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
	if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.7.5') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_2', '10.7.5');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_3');
	if (!NotTier3(my.target.mountpoint) || !HasEligibleARDApp(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 HasEligibleARDApp(prefix) {
	if (HasARDToUpdate(prefix) &amp;&amp; NotADowngrade(prefix)) {
		return true;
	}
	return false;
}
function HasARDToUpdate(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_5');
	var bundle = system.files.bundleAtPath(prefix + '/Applications/Remote Desktop.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.0') &lt; 0) {
		return false;
	}
	return true;
}
function NotADowngrade(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_6');
	var bundle = system.files.bundleAtPath(prefix + '/System/Library/CoreServices/RemoteManagement/ARDAgent.app');
	if (!bundle) {
		return true;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return true;
	}
	if (system.compareVersions(bundleKeyValue, '3.7.1') &gt; 0) {
		return false;
	}
	return true;
}
function NeedsAdminUpgrade(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/Remote Desktop.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.7.2') &gt;= 0) {
		return false;
	}
	return true;
}
</script>
    <platforms>
        <client arch="ppc,intel"/>
        <server arch="ppc,intel"/>
    </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="RemoteDesktopAdmin372" start_selected="true" visible="NeedsAdminUpgrade('/')">
        <pkg-ref id="RemoteDesktopAdmin372" auth="Root" packageIdentifier="com.apple.pkg.RemoteDesktopAdmin372">RemoteDesktopAdmin372.pkg</pkg-ref>
        <pkg-ref id="RemoteDesktopClient" auth="Root" packageIdentifier="com.apple.pkg.RemoteDesktopClient">RemoteDesktopClient.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie administratora Apple Remote Desktop";
"SU_VERS" = "3.7.2";
"SU_SERVERCOMMENT" = "Dla systemó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="1265.14">
  <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}
    span.s1 {text-decoration: underline ; color: #0000ee}
  </style>
</head>
<body>
<p class="p1">Uaktualnienie 3.7.2 jest zalecane dla wszystkich użytkowników pakietu Apple Remote Desktop i rozwiązuje wiele problemów związanych z niezawodnością, użytecznością oraz zgodnością. To uaktualnienie zapewnia także:</p>
<p class="p2"><br></p>
<p class="p1">- Poprawiony problem skanowania powodujący wyświetlanie nieprawidłowych adresów IP.</p>
<p class="p1">- Zmianę kolejności wyświetlanych ekranów w trybie obserwacji kilku komputerów.</p>
<p class="p1">- Obsługę systemu OS X Mavericks.</p>
<p class="p1">- Automatyczne kopiowanie oraz wklejanie między komputerami lokalnymi oraz zdalnymi.</p>
<p class="p1">- Poprawioną obsługę Maców z wieloma monitorami oraz wieloma adresami IP.</p>
<p class="p1">- Rozszerzoną obsługę funkcji obserwowania wielu komputerów poprzez przesuwanie palcami pomiędzy ekranami klientów.</p>
<p class="p1">- Poprawioną ogólną niezawodność programu Remote Desktop oraz sesji współdzielenia ekranu.</p>
<p class="p2"><br></p>
<p class="p1">Szczegółowe informacje dotyczące tego uaktualnienia można znaleźć pod adresem<span class="Apple-converted-space">  </span><a href="http://support.apple.com/kb/HT6115?viewlocale=pl_PL"><span class="s1">http://support.apple.com/kb/HT6115?viewlocale=pl_PL</span></a>.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='RemoteDesktopAdmin372' installKBytes='20291' version='3.7.2.0.1.1192644438'/>
	<pkg-ref id='RemoteDesktopClient' installKBytes='5657' version='3.7.1.0.1.1192644438'/>
</installer-gui-script>