Re: Checking OS version from InstallationCheck script?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thanks again, On Jun 1, 2005, at 2:49 PM, Peter Bierman wrote: -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 Derrick Griffel Intriguing Development Inc. 816-229-6768 ext. 12 www.idevelop.net _______________________________________________ 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... Thanks. I'm not a unix scripting guru, and after exhausting several hours trying to find any sort of example on how to do this, I finally resorted to digging around inside an existing Apple installer to shed any sort of light on the situation. I guess I just didn't quite dig far enough and only grabbed what I thought necessary to make my ever growing headache go away. Is there any good documentation or examples on how to create these type installation scripts? The only documentation I really found on Apple's site was basically what to name them and the existing variables you can use in your scripts. The only examples available were basically scripts that did nothing more than echo the available variables and what they return to the console. Which, no offense, but I found much less useful than an actual example for how to check the OS version would have been. Judging by other posts to this list, I'm not the only one who seems to find the seemingly lack of documentation very frustrating at times. I won't be able to attend WWDC either next week, so will that information also be available on the Apple site at some point? 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. _______________________________________________ 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 This email sent to bierman@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Derrick Griffel