Reliable way to get Windows Version from registry -


i'm checking windows version in installer (made nsis) checking following registry key:

hklm "software\microsoft\windows nt\currentversion" "currentversion" 

according this post , this page msdn, currentversion number windows 10 should 10.0.

i installed windows 10 pro insider preview , version number given in registry still 6.3, instead of 10.10 should.

is there reliable way in registry detect windows 10?

instead of reading value currentversion, read new values currentmajorversionnumber (which 10) , currentminorversionnumber (which 0) under windows 10. 2 keys new in windows 10 detect windows version registry.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -