<?xml version="1.0" encoding="UTF-8"?>
<installer-gui-script minSpecVersion='1'>
    <options customize='never'/>
    <options hostArchitectures='ppc,i386'/>
    <platforms>
        <client arch='i386,ppc'/>
        <server arch='i386,ppc'/>
    </platforms>
    <title>SU_TITLE</title>
    <choices-outline>
        <line choice='manual'/>
    </choices-outline>
    <choices-outline ui='SoftwareUpdate'>
        <line choice='su'/>
    </choices-outline>
    <choice id='manual'>
        <pkg-ref id='manual' auth='Root'>#MigrationDVDCDSharingLeopard.pkg</pkg-ref>
    </choice>
    <choice id='su' visible='!alreadyInstalled()'/>
    <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' suDisabledGroupID='DVDorCDSharingSetup'>
        <pkg-ref id='com.apple.pkg.MigrationDVDCDSharingLeopard' auth='Root'>MigrationDVDCDSharingLeopard.pkg</pkg-ref>
    </choice>
    <volume-check script='volumeCheck()'/>
    <script>
        function alreadyInstalled()
        {
		try {
			var plistCheck = system.files.plistAtPath(my.target.mountpoint + "/System/Library/CoreServices/ODSAgent.app/Contents/version.plist")
			if(plistCheck) {
				if(-1 != system.compareVersions(plistCheck.CFBundleShortVersionString, '1.2')) {
					return(true);
				}
			}
		}       
		catch(err) { return false; }
		return(false);      
        }

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

                if( (-1 == system.compareVersions(my.target.systemVersion.ProductVersion, '10.5.5'))) {
                    return(false);
                }
			
            }
            catch(err) {return false;}
            return(true);
        }

    	function volumeCheck()
    	{
            if (commonRequirements()) {
                return (true);
            }
            my.result.type = 'Fatal';
            my.result.message = system.localizedString('ERROR_INSTALL');
            return(false);
        }
        
        </script>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie migracji oraz udostępniania DVD ⁄ CD";
"SU_VERS" = "1.1";
"SU_SERVERCOMMENT" = "Dla komputerów stacjonarnych";

"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.33">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 12.0px Times}
span.s1 {text-decoration: underline ; color: #001fe8}
</style>
</head>
<body>
<p class="p1">To oprogramowanie jest zalecane dla wszystkich użytkowników. Zapewnia rozszerzone możliwości konfigurowania, a także poprawioną wydajność migracji poprzez FireWire, sieci Ethernet i bezprzewodowe.</p>
<p class="p1">Więcej informacji na temat tego uaktualnienia można znaleźć pod adresem: <a href="http://support.apple.com/kb/HT3174?viewlocale=pl_PL"><span class="s1">http://support.apple.com/kb/HT3174</span></a></p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='com.apple.pkg.MigrationDVDCDSharingLeopard' installKBytes='35594' version='1.0.1.1.1188305148'/>
</installer-gui-script>