Checking OS version from InstallationCheck script?
Checking OS version from InstallationCheck script?
- Subject: Checking OS version from InstallationCheck script?
- From: Derrick Griffel <email@hidden>
- Date: Wed, 1 Jun 2005 11:54:09 -0500
I am trying to create an InstallationCheck script and InstallationCheck.strings file that would prevent my installer from running on anything less than OS 10.3. I have created the following script, but it always fails with the following message in the installer even though I am running on 10.3.9. "
<x-tad-bigger>iRemember Installer cannot be installed on this computer. 31". The following is what my script looks like:
#!/usr/bin/perl
########################################################
my $SYSTEM_VERS = "/System/Library/CoreServices/SystemVersion.plist";
my $EXIT_VALUE = 0;
DO_CHECKS: {
# If too old, error.
if( CheckVersion( $SYSTEM_VERS, "10.3", "ProductVersion", "<" ))
{
$EXIT_VALUE = (( 3 << 5 ) | 16 );
exit($EXIT_VALUE);
}
}
exit($EXIT_VALUE);
</x-tad-bigger>My InstallationCheck.strings file contains the following line:
<x-tad-bigger>
</x-tad-bigger>"16" = "This software requires Mac OS X version 10.3 or later.";
Does anyone see any reason why my script would not be working properly and not even displaying my custom string? I've had a difficult time finding usable examples on Apple's site for creating such a script or performing such a check from an installer.
Thanks for any advice,
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden