<?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>
    <!-- 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.5.7+
            if(-1 == system.compareVersions(my.target.systemVersion.ProductVersion, '10.5.7')) {
                my.result.type = 'Fatal';
                my.result.message = system.localizedString('ERR_OSLOW');
                return (false);
            }

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

            // must not have newer version of AMU
            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, "5.6.1"))) {
                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 5.6.1
            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, '5.6.1'))) {
                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="EA0500"/>
    <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" = "5.6.1";

"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; color: #010900}
  </style>
</head>
<body>
    <p class="p1">Narzędzie AirPort 5.6.1 pozwala konfigurować i obsługiwać nowe urządzenie AirPort Express, działające w standardzie 802.11n, który wykorzystuje dwa pasma równocześnie.</p>
	<br />
	<p class="p1">Aby uzyskać najnowsze informacje o oprogramowaniu AirPort, przejdź do sekcji Uaktualnienia programów w Preferencjach systemowych lub do witryny Apple: <a href="http://support.apple.com/pl_PL/downloads/">Apple — Wsparcie — Pobieranie</a></p>
	<br />
	<p class="p1">Więcej o Apple Wi-Fi możesz się dowiedzieć pod adresem: <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='30032' version='5.6.1.1.1245777430'/>
</installer-gui-script>