Re: Checking for system version
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.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... On Jan 3, 2007, at 3:34 PM, Stéphane Sudre wrote: On mercredi, janvier 3, 2007, at 11:43 PM, adam_online@mac.com wrote: What is the best way to check what version of the Mac OS a user is using? For example, I only want to install my software if they are using Mac OS X 10.4.3 or above. Thanks in advance. InstallationCheck or VolumeCheck scripts will work on any OS release. You can find scripts checking for this in some Apple's packages (QuickTime is the first to come to my mind). Use a VolumeCheck script if you want the user to set the installation target to a partition different from the startup one. The standard place to check is /System/Library/CoreServices/ SystemVersion.plist Almost all installers will be satisfied by checking the "ProductVersion" propert in this plist. InstallationCheck gets all the checks that are not installation- destination specific, such as, "do you have 10.4.8 or later" or "do you have hardware that requires this software." If your installer is not installing system pieces, chances are you don't need a VolumeCheck at all, since the installer itself will handle disk space considerations. (Installer.app has a bit of confusion about installing "onto a drive." Most Apple installers end up installing bits and pieces into "the system" (ie, /System, /Library, various Unix folders), so either they restrict installation to the booted system volume (our consumer stuff is that way), OR they allow you to specify a drive, but then they install the system pieces into the selected drive's system domain, not the booted system domain. Chances are, your installer doesn't install stuff into the system, so you just use the volume selection as a destination for your app, so you don't need to test for anything in a volume check.) This email sent to site_archiver@lists.apple.com
participants (1)
-
Bill Coderre