<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion='1'>
    <options customize='never'/>
    <options hostArchitectures='i386,ppc'/>
    <platforms>
        <client arch="i386,ppc"/>
        <server arch="i386,ppc"/>
    </platforms>
    <title>SU_TITLE</title>
    <!-- Lion App Closing -->
    <pkg-ref id='com.apple.pkg.AirMacUtility'>
        <must-close>
            <app id="com.apple.airport.airportutility"/>
            <app id="com.apple.airport.airportutility56"/>
        </must-close>
    </pkg-ref>
    <!-- manual choices -->
    <choices-outline>
        <line choice='manual'/>
    </choices-outline>
    <choice id='manual'>
        <pkg-ref auth='Root' id='com.apple.pkg.AirMacUtility'>#AirMacUtility.pkg</pkg-ref>
    </choice>
    <!-- SU choices -->
    <choices-outline ui='SoftwareUpdate'>
        <line choice='su'/>
    </choices-outline>
    <choice id='su' suDisabledGroupID='AirMacUtility'>
        <pkg-ref id='a' auth='Root'>AirMacUtility.pkg</pkg-ref>
    </choice>
    <choice id='su' title='SU_TITLE' versStr='SU_VERS'/>
    <choice id='su' description='SU_DESCRIPTION' description-mime-type='text/html'/>
    <choice id='su' visible='isVisible()'/>
    <volume-check script='volumeCheck()'/>
    <script>
        function volumeCheck()
        {
            // must have an OS
            if(! system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist")) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_OSLOW');
                return (false);
            }

            // 10.7.2+
            if(-1 == system.compareVersions(my.target.systemVersion.ProductVersion, '10.7.2')) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_OSLOW');
                return (false);
            }

            // Less than 10.8
            if(-1 != system.compareVersions(my.target.systemVersion.ProductVersion, '10.8')) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_OSHIGH');
                return (false);
            }

            // must not have newer version of APU
            var plist = system.files.plistAtPath(my.target.mountpoint + '/Applications/Utilities/AirPort Utility.app/Contents/Info.plist');
            if (plist &amp;&amp; (1 == system.compareVersions(plist.CFBundleShortVersionString, "6.0"))) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_NEWER');
                return (false);
            }

            // must not have tier3 loc
            if(true == system.files.fileExistsAtPath(my.target.mountpoint + "/var/db/.AppleTier3Language")) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_TIER3');
                return (false);
            }

            return(true);
        }

        function isVisible()
        {
            // must have AirMac Utility less than 6.0
            var plist = system.files.plistAtPath('/Applications/Utilities/AirPort Utility.app/Contents/Info.plist');
            if (!plist) {
                return (false);
            }

            if (plist &amp;&amp; (-1 != system.compareVersions(plist.CFBundleShortVersionString, '6.0'))) {
                return false;
            }

			// 10.7.2+
			if(-1 == system.compareVersions(my.target.systemVersion.ProductVersion, '10.7.2')) {
			    return false;
			}

            // display update only if system language is japanese
            var appleLanguages = system.defaults['AppleLanguages'];
            if(appleLanguages &amp;&amp; (appleLanguages.length != 0) &amp;&amp; ((appleLanguages[0] == 'Japanese') || (appleLanguages[0] == 'ja'))) {
                return true;
            }

            return false;
        }
    </script>
    <welcome file='ReadMe.rtf'/>
    <license file='License.rtf' sla="EA0757"/>
    <background file='background.tif' alignment='bottomleft' scaling='none'/>
    <localization>
        <strings language="pl"><![CDATA["SU_SERVERCOMMENT" = "Dla systemów klienckich oraz serwerów";
"SU_TITLE" = "Narzędzie AirPort";
"SU_VERS" = "6.0";

"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="949.27">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Lucida Grande}
  </style>
</head>
<body>
	<p class="p1">Narzędzie AirPort służy do konfigurowania sieci Wi-Fi oraz stacji bazowych AirPort, w tym AirPort Express, AirPort Extreme i Time Capsule, a także do zarządzania nimi. Narzędzie oferuje schemat graficzny sieci Wi-Fi oraz urządzeń, a także pozwala zmieniać ustawienia stacji bazowych i sieci oraz zarządzać funkcjami zaawansowanymi, na przykład trybami zabezpieczeń i kanałami radiowymi.</p>
	<br />
	<p class="p1">Aby uzyskać najnowsze informacje o oprogramowaniu AirPort, użyj Uaktualnień programów z menu Apple lub odwiedź następującą stronę Apple: <a href="http://support.apple.com/pl_PL/downloads/">Wsparcie — Pobieranie</a>.</p>
	<br />
	<p class="p1">Więcej informacji o urządzeniach Wi-Fi firmy Apple znajdziesz na stronie: <a href="http://www.apple.com/pl/wifi/">http://www.apple.com/pl/wifi/</a>.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='a' installKBytes='34511' version='6.0.1.1245777430'/>
</installer-gui-script>