SystemInfo.WinMajorVersion
--------------------------

Returns the major version number of the operating system.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SystemInfo](component_SystemInfo.md) | [2.8](newinversion28.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "SystemInfo.WinMajorVersion" ) ### Parameters

none

### Result

Returns the major version number.

### Description

Returns the major version number of the operating system.  
Returns 5 on Windows 2000/XP and 6 on Windows Vista/7/8.  
### Examples

Show window version:

 Show Custom Dialog \[ "Windows Version" ; MBS ( "SystemInfo.WinMajorVersion" ) &amp; "." &amp; MBS ( "[SystemInfo.WinMinorVersion](SystemInfoWinMinorVersion.md)" ) \]  
### See also

- [SystemInfo.MacMajorVersion](SystemInfoMacMajorVersion.md)
- [SystemInfo.MacMinorVersion](SystemInfoMacMinorVersion.md)
- [SystemInfo.WinCSDVersion](SystemInfoWinCSDVersion.md)
- [SystemInfo.WinMinorVersion](SystemInfoWinMinorVersion.md)

This function is free to use.

Created 18th August 2014 , last changed 28th January 2023

  
[SystemInfo.WinCSDVersion](SystemInfoWinCSDVersion.md) - [SystemInfo.WinMinorVersion](SystemInfoWinMinorVersion.md)

[HTML Version](SystemInfoWinMajorVersion.shtml)