Re: Checking for system version
Re: Checking for system version
- Subject: Re: Checking for system version
- From: Bill Coderre <email@hidden>
- Date: Wed, 3 Jan 2007 17:18:35 -0800
On Jan 3, 2007, at 3:34 PM, Stéphane Sudre wrote:
On mercredi, janvier 3, 2007, at 11:43 PM, email@hidden 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.)
_______________________________________________
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