[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.04 alive, but...



In article <1993Apr27.124316.42839@urz.unibas.ch> hochstrasse@urz.unibas.ch writes:
> Now the 2nd question: How can I test in the most elegant
> way, which system version the machine is running on? (I
> mean besides picking a changed tool and testing the
> version number).

In all of my programs, I check the GS/OS version number.

Unfortunately, this isn't always incremented for minor releases (e.g.
System 5.0.3 and 5.0.4 had the same version of GS/OS).  If I need to
distinguish between these cases, I check a toolset version which
changed as well.

I'm maintaining a spreadsheet that contains the version numbers of
GS/OS and all toolsets for each release of the system software.  The
important versions of GS/OS are:

System 4.0	GS/OS 2.0
System 5.0	GS/OS 3.0
System 6.0	GS/OS 4.01

I can't remember what 5.0.1 to 5.0.4 were, off-hand.

With System 6.0 and later, there is an rVersion resource in the
Sys.Resources file, which contains the version of the system software.
If you want to test for System 6 (or a later specific version), then
start up the resource manager (if that fails you don't even have
System 5.0), and try to load the version resource (I don't have the
type or ID handy).  If it doesn't exist, you're in System 5.0.4 or
earlier.  If it does exist, decode the fields to determine which
system software version you're using.
-- 
David Empson                                                               
dempson@swell.actrix.gen.nz    <--- Note my new E-Mail address!            
Snail mail: P.O. Box 27-103, Wellington, New Zealand