0

Im working on a Wix installer and need to know the windows version, however, on Windows 10 when I check the registry 'CurrentVersion' located at:

SOFTWARE\Microsoft\Windows NT\CurrentVersion

It reports 6.3 which is Windows 8.1 and not 10

Why is this and how can I differentiate Windows 8.1 & 10?

tinmac
  • 2,357
  • 3
  • 25
  • 41
  • You upgraded from 8.1 to 10: http://superuser.com/q/962796/4206 – Roger Lipscombe Feb 12 '16 at 15:37
  • @ Roger Lipscombe Yes I saw that post but I didn't upgrade this is a fresh install on a VM – tinmac Feb 12 '16 at 15:44
  • 1
    Microsoft got fed-up with installers checking the version number, and failing, even though their new version was quite capable of running the app. So they did not change the registry key value. These version lies are universal in the api as well. I suppose you could look if CurrentMajorVersionNumber exists. – Hans Passant Feb 12 '16 at 15:44
  • @ Hans Passant Ok so what is the correct way to check the OS version? – tinmac Feb 12 '16 at 15:47
  • @ Hans Passant you read my mind with your edit thanks. – tinmac Feb 12 '16 at 15:47

0 Answers0