Talk:Check Version (Windows)
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" />