title: Reliable way to get Windows Version from registry
body: <p>I'm checking the windows version in an installer (made with NSIS) by checking the following registry key:</p>
  
  <pre><code>HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CurrentVersion"
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/a/14702072/549195">this post</a> and <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx" rel="noreferrer">this page</a> from MSDN, the currentVersion number for Windows 10 should be 10.0. </p>
  
  <p>I just installed the Windows 10 Pro Insider Preview and the version number given in the registry is still 6.3, instead of 10.10 as it should.</p>
  
  <p>Is there another reliable way in registry to detect Windows 10?  </p>