Re: Checking OS version from InstallationCheck script?
Re: Checking OS version from InstallationCheck script?
- Subject: Re: Checking OS version from InstallationCheck script?
- From: Peter Bierman <email@hidden>
- Date: Wed, 1 Jun 2005 12:49:53 -0700
Since you cribbed the code from an Apple InstallationCheck (that's
fine), you also need to grab the part of the script that defines the
CheckVersion() function.
We'll be explaining how to do this sort of thing at WWDC next week,
Session 106 Tuesday @ 3:30, and we'll be hosting a lab to help
developers in person from 5 - 7:30.
-pmb
At 11:54 AM -0500 6/1/05, Derrick Griffel wrote:
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. "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);
My InstallationCheck.strings file contains the following line:
"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
_______________________________________________
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