Re: Checking OS version from InstallationCheck script?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com -pmb #!/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."; Thanks for any advice, Derrick _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/bierman%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. 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: 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. This email sent to bierman@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman