What part of this code do I remove to make this install on my G5?
<?xml version="1.0"?>
<installer-gui-script minSpecVersion='1.0040'>
<platforms>
<client arch="i386,ppc"/>
</platforms>
<options hostArchitectures='i386,ppc'/>
<title>TITLE_DIST</title>
<welcome file='Welcome.rtf'/>
<license file='License.rtf'/>
<background file='background.tif'/>
<background scaling='tofit'/>
<background alignment='topleft'/>
<options customize='always'/>
<options allow-external-scripts='yes'/>
<options mpkg='com.apple.mpkg.FinalCutStudio'/>
<script>
function oldDSPContent()
{
var rnum = system.runOnce("DSPContentChecker");
if( rnum == 1 ){ return true; }
return false;
}
function installationCheck()
{
if( !system.env.COMMAND_LINE_INSTALL )
{
if( !isIntel() )
{
my.result.message = system.localizedString('ERROR_INTEL');
my.result.type = 'Fatal';
return false;
}
if( system.compareVersions(system.version.ProductVersion,"10.5.6") < 0 )
{
my.result.message = system.localizedString('ERROR_OSVER');
my.result.type = 'Fatal';
return false;
}
var rnum = system.runOnce("installtmp");
var tmpfile = "/tmp/insttmp_" + rnum.toString();
var res = system.runOnce("Requirements\ Checker.app/Contents/MacOS/Requirements\ Checker", "-silent", "Default", tmpfile);
if( res == 0 )
{
return true;
}
else if( res == 1 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = plist.RequirementsOutput;
my.result.type = 'Fatal';
return false;
}
else if( res == 2 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = plist.RequirementsOutput;
my.result.type = 'Warn';
return false;
}
else if( res == 10 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = system.localizedString('ERROR_REQCHECK');
my.result.type = 'Fatal';
return false;
}
}
my.result.message = "";
return true;
}
function volume_check()
{
if( my.target.mountpoint != '/' && !system.env.COMMAND_LINE_INSTALL )
{
my.result.message = system.localizedString('ERROR_VOLUME');
my.result.type = 'Fatal';
return false;
}
return true;
}
function isIntel()
{
return (system.sysctl('hw.byteorder') == '1234');
}
function isLeopard()
{
return (system.compareVersions(system.version.ProductVersion,"10.5.0") >= 0) && (system.compareVersions(system.version.ProductVersion,"10.6.0") < 0);
}
function isNotDowngrade()
{
var action = my.choice.packageUpgradeAction;
if( (action == 'downgrade') || (action == 'mixed') )
{
my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
return false;
}
return true;
}
function iDVDPresent( )
{
var app = my.target.mountpoint + '/Applications/iDVD.app';
if( app )
{
var appBundle = system.files.bundleAtPath(app);
if( appBundle ){ return true; }
}
my.choice.tooltip = system.localizedStringWithFormat("IDVDPATCHES_TOOLTIP");
return false;
}
function AppRange(lower, upper, apps)
{
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
var appVersion = GetBundleFiveTupleVersion(appBundle);
if( appBundle && (system.compareVersions(appVersion, lower) >= 0) && (system.compareVersions(appVersion, upper) < 0) ){ return true; }
}
}
return false;
}
function AppRangeOrNotPresent(lower, upper, apps )
{
if( AppRange(lower, upper, apps) ){ return true; }
var res = false;
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
return false;
}
}
return true;
}
function AppHigherThanRange(lower, apps)
{
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
var appVersion = GetBundleFiveTupleVersion(appBundle);
if( appBundle && (system.compareVersions(appVersion, lower) >= 0) ){ return true; }
}
}
return false;
}
function HigherThan(lower, bundle)
{
var appBundle = system.files.bundleAtPath(my.target.mountpoint + bundle);
var appVersion = GetBundleFiveTupleVersion(appBundle);
if(appBundle && (system.compareVersions(appVersion, lower) >= 0) ){ return true; } return false;
}
function Range(lower,upper, bundle)
{
var appBundle = system.files.bundleAtPath(my.target.mountpoint + bundle);
var appVersion = GetBundleFiveTupleVersion(appBundle);
if(appBundle && (system.compareVersions(appVersion, lower) >= 0) && (system.compareVersions(appVersion, upper) < 0)){ return true; } return false;
}
function GetBundleFiveTupleVersion(bundle)
{
if( bundle == null ){ return null; }
var shortVers = bundle.CFBundleShortVersionString;
shortVers = PadVersion(shortVers, 3);
var sourceVers = bundle.SourceVersion;
sourceVers = PadVersion(sourceVers, 1);
var buildVers = bundle.BuildVersion;
buildVers = PadVersion(buildVers, 1);
var fiveTupleVers = shortVers + "." + sourceVers + "." + buildVers;
return fiveTupleVers;
}
function PadVersion(version, tupleCount)
{
if (version == null){ version = "0"; }
var components = version.split(".");
if (components.length > tupleCount){ components = components.slice(0, tupleCount); }
else{ for(; components.length<tupleCount; ){ components.push("0"); } }
return components.join(".");
}
</script>
<installation-check script='installationCheck()'/>
<volume-check script="volume_check()"/>
<choices-outline>
<line choice="FCPApp"/>
<line choice="Color"/>
<line choice="MotionGroup">
<line choice="MotionApp"/>
<line choice="MotionContentGroupings">
<line choice="MotionContentTemplates"/>
<line choice="MotionInstalledMedia"/>
<line choice="MotionInstalledMedia2"/>
</line>
<line choice="MotionLiveFonts"/>
</line>
<line choice="SoundtrackProGroup">
<line choice="SoundtrackProApp"/>
<line choice="SurroundImpulseResponseFiles"/>
<line choice="SoundtrackProContent">
<line choice="SoundtrackProSoundEffects"/>
<line choice="SoundtrackProMusicBeds"/>
<line choice="SoundtrackProMusicLoops"/>
</line>
</line>
<line choice="Compressor"/>
<line choice="DSPGroup">
<line choice="DSPApp"/>
<line choice="DSPContentGroup">
<line choice="NTSCTemplates">
<line choice="HDDVDNTSC"/>
<line choice="SDDVDNTSC"/>
</line>
<line choice="PALTemplates">
<line choice="HDDVDPAL"/>
<line choice="SDDVDPAL"/>
</line>
</line>
<line choice="iDVDPatches"/>
</line>
<line choice="AppleQmaster"/>
<line choice="CTApp"/>
<!-- invisible choices for shared components -->
<line choice="SharedComponents"/>
<line choice="ProAppsEffects"/>
<line choice="ProCore"/>
<line choice="ProRuntime"/>
<line choice="SoundtrackProSupport"/>
<line choice="ProMediaIO"/>
<!-- -->
<line choice="XSKey"/>
</choices-outline>
<choice id="FCPApp" title="TITLE_FCP"
<choice id="MotionInstalledMedia2" title="TITLE_MOTIONINSTALLEDMEDIA2" selected="!system.env.COMMAND_LINE_INSTALL && (choices.MotionInstalledMedia.selected || choices.MotionContentTemplates.selected)" start_visible='false'>
<pkg-ref id='com.apple.pkg.MotionInstalledMedia2' auth='Root' installKBytes="4132134" version="1.5.0.3140000.1590">x-disc://Motion%20Content%201/Installer/Packages/MotionInstalledMedia2.pkg</pkg-ref>
Please help.
<?xml version="1.0"?>
<installer-gui-script minSpecVersion='1.0040'>
<platforms>
<client arch="i386,ppc"/>
</platforms>
<options hostArchitectures='i386,ppc'/>
<title>TITLE_DIST</title>
<welcome file='Welcome.rtf'/>
<license file='License.rtf'/>
<background file='background.tif'/>
<background scaling='tofit'/>
<background alignment='topleft'/>
<options customize='always'/>
<options allow-external-scripts='yes'/>
<options mpkg='com.apple.mpkg.FinalCutStudio'/>
<script>
function oldDSPContent()
{
var rnum = system.runOnce("DSPContentChecker");
if( rnum == 1 ){ return true; }
return false;
}
function installationCheck()
{
if( !system.env.COMMAND_LINE_INSTALL )
{
if( !isIntel() )
{
my.result.message = system.localizedString('ERROR_INTEL');
my.result.type = 'Fatal';
return false;
}
if( system.compareVersions(system.version.ProductVersion,"10.5.6") < 0 )
{
my.result.message = system.localizedString('ERROR_OSVER');
my.result.type = 'Fatal';
return false;
}
var rnum = system.runOnce("installtmp");
var tmpfile = "/tmp/insttmp_" + rnum.toString();
var res = system.runOnce("Requirements\ Checker.app/Contents/MacOS/Requirements\ Checker", "-silent", "Default", tmpfile);
if( res == 0 )
{
return true;
}
else if( res == 1 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = plist.RequirementsOutput;
my.result.type = 'Fatal';
return false;
}
else if( res == 2 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = plist.RequirementsOutput;
my.result.type = 'Warn';
return false;
}
else if( res == 10 )
{
var plist = system.files.plistAtPath(tmpfile);
my.result.message = system.localizedString('ERROR_REQCHECK');
my.result.type = 'Fatal';
return false;
}
}
my.result.message = "";
return true;
}
function volume_check()
{
if( my.target.mountpoint != '/' && !system.env.COMMAND_LINE_INSTALL )
{
my.result.message = system.localizedString('ERROR_VOLUME');
my.result.type = 'Fatal';
return false;
}
return true;
}
function isIntel()
{
return (system.sysctl('hw.byteorder') == '1234');
}
function isLeopard()
{
return (system.compareVersions(system.version.ProductVersion,"10.5.0") >= 0) && (system.compareVersions(system.version.ProductVersion,"10.6.0") < 0);
}
function isNotDowngrade()
{
var action = my.choice.packageUpgradeAction;
if( (action == 'downgrade') || (action == 'mixed') )
{
my.choice.tooltip = system.localizedStringWithFormat('TT_NEWERALREADYINSTALLED');
return false;
}
return true;
}
function iDVDPresent( )
{
var app = my.target.mountpoint + '/Applications/iDVD.app';
if( app )
{
var appBundle = system.files.bundleAtPath(app);
if( appBundle ){ return true; }
}
my.choice.tooltip = system.localizedStringWithFormat("IDVDPATCHES_TOOLTIP");
return false;
}
function AppRange(lower, upper, apps)
{
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
var appVersion = GetBundleFiveTupleVersion(appBundle);
if( appBundle && (system.compareVersions(appVersion, lower) >= 0) && (system.compareVersions(appVersion, upper) < 0) ){ return true; }
}
}
return false;
}
function AppRangeOrNotPresent(lower, upper, apps )
{
if( AppRange(lower, upper, apps) ){ return true; }
var res = false;
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
return false;
}
}
return true;
}
function AppHigherThanRange(lower, apps)
{
for( var i = 0; i < apps.length; i++ )
{
var app= '/Applications/' + apps + '.app';
var appBundle = system.files.bundleAtPath(app);
if( appBundle )
{
var appVersion = GetBundleFiveTupleVersion(appBundle);
if( appBundle && (system.compareVersions(appVersion, lower) >= 0) ){ return true; }
}
}
return false;
}
function HigherThan(lower, bundle)
{
var appBundle = system.files.bundleAtPath(my.target.mountpoint + bundle);
var appVersion = GetBundleFiveTupleVersion(appBundle);
if(appBundle && (system.compareVersions(appVersion, lower) >= 0) ){ return true; } return false;
}
function Range(lower,upper, bundle)
{
var appBundle = system.files.bundleAtPath(my.target.mountpoint + bundle);
var appVersion = GetBundleFiveTupleVersion(appBundle);
if(appBundle && (system.compareVersions(appVersion, lower) >= 0) && (system.compareVersions(appVersion, upper) < 0)){ return true; } return false;
}
function GetBundleFiveTupleVersion(bundle)
{
if( bundle == null ){ return null; }
var shortVers = bundle.CFBundleShortVersionString;
shortVers = PadVersion(shortVers, 3);
var sourceVers = bundle.SourceVersion;
sourceVers = PadVersion(sourceVers, 1);
var buildVers = bundle.BuildVersion;
buildVers = PadVersion(buildVers, 1);
var fiveTupleVers = shortVers + "." + sourceVers + "." + buildVers;
return fiveTupleVers;
}
function PadVersion(version, tupleCount)
{
if (version == null){ version = "0"; }
var components = version.split(".");
if (components.length > tupleCount){ components = components.slice(0, tupleCount); }
else{ for(; components.length<tupleCount; ){ components.push("0"); } }
return components.join(".");
}
</script>
<installation-check script='installationCheck()'/>
<volume-check script="volume_check()"/>
<choices-outline>
<line choice="FCPApp"/>
<line choice="Color"/>
<line choice="MotionGroup">
<line choice="MotionApp"/>
<line choice="MotionContentGroupings">
<line choice="MotionContentTemplates"/>
<line choice="MotionInstalledMedia"/>
<line choice="MotionInstalledMedia2"/>
</line>
<line choice="MotionLiveFonts"/>
</line>
<line choice="SoundtrackProGroup">
<line choice="SoundtrackProApp"/>
<line choice="SurroundImpulseResponseFiles"/>
<line choice="SoundtrackProContent">
<line choice="SoundtrackProSoundEffects"/>
<line choice="SoundtrackProMusicBeds"/>
<line choice="SoundtrackProMusicLoops"/>
</line>
</line>
<line choice="Compressor"/>
<line choice="DSPGroup">
<line choice="DSPApp"/>
<line choice="DSPContentGroup">
<line choice="NTSCTemplates">
<line choice="HDDVDNTSC"/>
<line choice="SDDVDNTSC"/>
</line>
<line choice="PALTemplates">
<line choice="HDDVDPAL"/>
<line choice="SDDVDPAL"/>
</line>
</line>
<line choice="iDVDPatches"/>
</line>
<line choice="AppleQmaster"/>
<line choice="CTApp"/>
<!-- invisible choices for shared components -->
<line choice="SharedComponents"/>
<line choice="ProAppsEffects"/>
<line choice="ProCore"/>
<line choice="ProRuntime"/>
<line choice="SoundtrackProSupport"/>
<line choice="ProMediaIO"/>
<!-- -->
<line choice="XSKey"/>
</choices-outline>
<choice id="FCPApp" title="TITLE_FCP"
<choice id="MotionInstalledMedia2" title="TITLE_MOTIONINSTALLEDMEDIA2" selected="!system.env.COMMAND_LINE_INSTALL && (choices.MotionInstalledMedia.selected || choices.MotionContentTemplates.selected)" start_visible='false'>
<pkg-ref id='com.apple.pkg.MotionInstalledMedia2' auth='Root' installKBytes="4132134" version="1.5.0.3140000.1590">x-disc://Motion%20Content%201/Installer/Packages/MotionInstalledMedia2.pkg</pkg-ref>
Please help.