Difference between revisions of "Talk:Check Version (Windows)"
From WPKG | Open Source Software Deployment and Distribution
(Created page with "All my Windows 10 installations (Build 1709 installed from scratch, NO update) have the value "6.3" in the "CurrentVersion" registry entry.") |
(→Why not using version of ntoskrnl.exe ?: new section) |
||
| Line 1: | Line 1: | ||
All my Windows 10 installations (Build 1709 installed from scratch, NO update) have the value "6.3" in the "CurrentVersion" registry entry. | All my Windows 10 installations (Build 1709 installed from scratch, NO update) have the value "6.3" in the "CurrentVersion" registry entry. | ||
| + | |||
| + | == Why not using version of ntoskrnl.exe ? == | ||
| + | |||
| + | What about using the version of "%SystemRoot%\system32\ntoskrnl.exe" | ||
| + | |||
| + | This would make it possible to check for "versiongreaterthan" or "versionsmallerthan", which could make some situations easier. | ||
| + | |||
| + | <source lang="xml"> | ||
| + | <!-- windows 7 or newer --> | ||
| + | <check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="6.1" /> | ||
| + | <!-- windows 8.1, Server 2012 or newer --> | ||
| + | <check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="6.3" /> | ||
| + | <!-- windows 10 or newer --> | ||
| + | <check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="10.0" /> | ||
| + | </source> | ||
| + | |||
| + | [https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions Wikipedia Windows Versions] | ||
Latest revision as of 10:56, 2 February 2018
All my Windows 10 installations (Build 1709 installed from scratch, NO update) have the value "6.3" in the "CurrentVersion" registry entry.
Why not using version of ntoskrnl.exe ?
What about using the version of "%SystemRoot%\system32\ntoskrnl.exe"
This would make it possible to check for "versiongreaterthan" or "versionsmallerthan", which could make some situations easier.
<!-- windows 7 or newer -->
<check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="6.1" />
<!-- windows 8.1, Server 2012 or newer -->
<check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="6.3" />
<!-- windows 10 or newer -->
<check type="file" condition="versiongreaterthan" path="%SystemRoot%\system32\ntoskrnl.exe" value="10.0" />