A new user interface for you! Read more...

File GetVersion.windows8.10.patch of Package nsis-getversion

diff -Naru GetVersion_orig/Contrib/GetVersion/GetVersion.cpp GetVersion/Contrib/GetVersion/GetVersion.cpp
--- GetVersion_orig/Contrib/GetVersion/GetVersion.cpp	2014-10-02 12:23:13.135502221 +0900
+++ GetVersion/Contrib/GetVersion/GetVersion.cpp	2014-10-02 12:25:35.175509035 +0900
@@ -112,6 +112,20 @@
           else
             szOsName = TEXT("Server 2008 R2");
         }
+        else if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 2)
+        {
+          if (osvi.wProductType == VER_NT_WORKSTATION)
+            szOsName = TEXT("8");
+          else
+            szOsName = TEXT("Server 2012");
+        }
+        else if (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 4)
+        {
+          if (osvi.wProductType == VER_NT_WORKSTATION)
+            szOsName = TEXT("10");
+          else
+            szOsName = TEXT("Server 10");
+        }
         else if (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)
         {