GeoEco.Dependencies.WindowsDependency.GetProductNameFromVersionNumbers

classmethod WindowsDependency.GetProductNameFromVersionNumbers(majorVersion, minorVersion=None, servicePack=None, build=None)

Given version numbers, returns a descriptive name of the corresponding Microsoft Windows product.

Parameters:
  • majorVersion (int) – Windows major version number (the first number reported by the ver command executed from the Windows Command Prompt). Minimum value꞉ 5.

  • minorVersion (int, optional) – Windows minor version number (the second number reported by the ver command executed from the Windows Command Prompt). None is interpreted as 0. Minimum value꞉ 0.

  • servicePack (int, optional) – Windows service pack number, or None to indicate no service pack. Minimum value꞉ 0.

  • build (int, optional) – Windows service build number, or None if the build number is not known. Starting with Windows 10, the build number should always be provided. Minimum value꞉ 0.

Returns:

Descriptive name of the Microsoft Windows product for the given version numbers.

Return type:

str