Back to product page

WinVersion property


Returns version of Windows currently running.

Type

A String value

Syntax

  • Basic
object.WinVersion [= value]
The WinVersion(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodAppUpdate.
valueA String value.

Remarks

This property returns version of Windows running on user's computer. It is obtained from GetVersionEx API, and provides following information separated by period:

MajoVersion.MinorVersion.PlatformID.BuildNumber.

you can easily parse this string to determine how will your application update itself. For example, on Vista it may behave differently than on WinXP.

Detailed information about versions and their corresponding numbers can be found for OSVERSIONINFO structure.

Platforms

Windows