If WinVer()

IF WinVer() =|>|<|>=|<=|<>value or WinVer() = range(value1, value2) returns the version number of the Windows operating system. This is a Windows only function. You can compare against a single value or provide a range to compare against.

The value of a Window's version is the same as the value defined by Microsoft, 3.1 for Windows 3.1; 3.11 for Windows for Workgroups; 3.5 for Windows NT 3.5; 3.51 for Windows NT 3.51; 3.95 for Windows 95; and 4.0 for Windows NT 4.0.

Example 1:

IF WINVER() >= 3.1

ELSE

EXITMESSAGE

Not compatible with your Windows version - install ended.

EXIT

ENDIF

Checks whether the user has Windows 3.1 or later installed.

Example 2:

IF WINVER() = range(3.5,3.9)

ELSE

EXITMESSAGE

Not compatible with your Windows version - install ended.

EXIT

ENDIF

Checks whether the user has at least Windows version 3.5 but less than Windows version 4.0. In other words, it checks to see that the user is running Windows NT 3.5x.