diff --git a/build/installer.nsh b/build/installer.nsh deleted file mode 100644 index a28bf04c6..000000000 --- a/build/installer.nsh +++ /dev/null @@ -1,16 +0,0 @@ -!include LogicLib.nsh - -Function .onInit - - ; Check Windows major version - ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion - StrCpy $R1 $R0 1 -1 ; Extract major version (e.g., "10" from "10.0") - IntOp $R1 $R1 - 10 ; Subtract 10 - - ; If major version is less than 10, abort - ${If} $R1 < 0 - MessageBox MB_OK|MB_ICONERROR "This application requires Windows 10 or higher." - Abort - ${EndIf} - -FunctionEnd \ No newline at end of file diff --git a/package.json b/package.json index a7b183d74..1be685191 100644 --- a/package.json +++ b/package.json @@ -250,8 +250,7 @@ "nsis": { "deleteAppDataOnUninstall": true, "oneClick": false, - "allowToChangeInstallationDirectory": true, - "script": "build/installer.nsh" + "allowToChangeInstallationDirectory": true }, "linux": { "category": "Network",