<?xml version="1.0" encoding="UTF-8"?>
<installer-gui-script minSpecVersion='1'>
    <options customize='never'/>
    <options hostArchitectures='i386'/>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <license file="License.rtf" sla="EA0325"/>
    <readme file='SUDescription.html'/>
    <title>SU_TITLE</title>
    <choices-outline ui='SoftwareUpdate'>
        <line choice='su'/>
    </choices-outline>
    <choices-outline>
        <line choice='manual'/>
    </choices-outline>
    <choice id='su' suDisabledGroupID='MiniDPVGAFirmwareUpdate'>
        <pkg-ref id='auto' auth='Root'>MiniDPVGAFirmwareUpdate.pkg</pkg-ref>
    </choice>
    <choice id='manual' title='SU_TITLE'>
        <pkg-ref id='manual' auth='Root'>#MiniDPVGAFirmwareUpdate.pkg</pkg-ref>
    </choice>
    <choice id='su' title='SU_TITLE'/>
    <choice id='su' versStr='SU_VERS'/>
    <choice id='su' description='SU_DESCRIPTION' description-mime-type='text/html'/>
    <choice id='su' visible='hasValidHardware()'/>
    <volume-check script='volumeCheck()'/>
    <script>

        function commonRequirements() {
            try {
                // must have an OS
                if(false == system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist")) {
					my.result.message = system.localizedString('ERROR_OS');
                    return (false);
                }

                // 10.5.6 or later
                if(system.compareVersions(my.target.systemVersion.ProductVersion, '10.5.6') &lt; 0) {
					my.result.message = system.localizedString('ERROR_OS');
                    return (false);
                }
					
            }
            catch(err) { return false; }
            return(true);
        }

    	function volumeCheck()
    	{
			my.result.message = system.localizedString('ERROR_INSTALL');
            if (commonRequirements()) {
                return (true);
            }
            my.result.type = 'Fatal';
            return(false);
        }
        		
		function hasValidHardware()
	    {
	        var objs = system.ioregistry.matchingClass("IONDRVDevice");
	        if (objs) {
				for (var i = 0; i &lt; objs.length; i++) {
					var entry = objs[i];
					var dpcd_registers = entry["dpcd-registers"];
					if (dpcd_registers) {
						var magic = dpcd_registers.substring(2566, 2576);
						if (magic == "6d56474161") {
							var version = dpcd_registers.substring(2580, 2584);
							if (system.numericalCompare(version, "0103") &lt; 0) {
								return true;
							}
						}
					}
	            }
			}  
			return false;
	    }	

        </script>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie oprogramowania sprzętowego Mini DisplayPort do VGA";
"SU_VERS" = "1.0";
"SU_SERVERCOMMENT" = "Dla serwerów i komputerów klienckich";

"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.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Lucida Grande}
</style>
</head>
<body>
<p class="p1">To uaktualnienie oprogramowania sprzętowego rozwiązuje problem sporadycznego<span class="Apple-converted-space">  </span>migotania oraz problemy zgodności takie, jak brak sygnału wideo na niektórych monitorach zewnętrznych podłączonych za pomocą przejściówki Mini DisplayPort do VGA na Macintoshu z Mini DisplayPort.</p>
<p class="p1">Uaktualnienie oprogramowania sprzętowego przejściówki Mini DisplayPort do VGA zostanie pobrane do katalogu Narzędzia. Następnie zostanie automatycznie uruchomione i uaktualnieni oprogramowanie sprzętowe przejściówki Mini DisplayPort do VGA. Do Macintosha musi być podłączona przejściówka Mini DisplayPort do VGA oraz zgodny monitor VGA. Należy także podłączyć zasilacz do Macintosha.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='auto' installKBytes='30542' version='1.0.1.1236805676'/>
</installer-gui-script>