浏览代码

Hopefully fix the Windows 7 check in the installer.

Tobias Hieta 9 年之前
父节点
当前提交
50f1a6c280
共有 1 个文件被更改,包括 3 次插入15 次删除
  1. 3 15
      bundle/win/shortcut.qs

+ 3 - 15
bundle/win/shortcut.qs

@@ -40,20 +40,6 @@ function isVersionNewer(version, version2) {
 
 function Component()
 {
-  //
-  // Check whether OS is supported.
-  //
-  // For Windows and OS X we check the kernel version:
-  //  - Require at least Windows Vista (winnt kernel version 6.0.x)
-  //  - Require at least OS X 10.7 (Lion) (darwin kernel version 11.x)
-  //
-  // If the kernel version is older we move directly
-  // to the final page & show an error.
-  //
-  // For Linux, we check the distribution and version, but only
-  // show a warning if it does not match our preferred distribution.
-  //
-
   // start installer with -v to see debug output
   console.log("OS: " + systemInfo.productType);
   console.log("Kernel: " + systemInfo.kernelType + "/" + systemInfo.kernelVersion);
@@ -62,7 +48,9 @@ function Component()
   var validArch = false;
 
   if (systemInfo.kernelType === "winnt") {
-    if (isVersionNewer(systemInfo.kernelVersion, "6.1.0"))
+
+    // check for windows 7 or newer
+    if (isVersionNewer("6.1.0", systemInfo.kernelVersion))
       validOs = true;
 
     if (systemInfo.currentCpuArchitecture === "x86_64")