From a4d7f77016b34ce31004e87fa698047fa9b8c689 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sat, 6 Feb 2021 15:23:15 +0100 Subject: [PATCH] Fix regression of installer which cannot be launched The regression is due to commit "Drop XP in installer" (ca1bcb1ec0bedbb4aad227c369667aef30624618). --- PowerEditor/installer/nsisInclude/tools.nsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PowerEditor/installer/nsisInclude/tools.nsh b/PowerEditor/installer/nsisInclude/tools.nsh index 86cef387c..a802da2df 100644 --- a/PowerEditor/installer/nsisInclude/tools.nsh +++ b/PowerEditor/installer/nsisInclude/tools.nsh @@ -127,19 +127,21 @@ Function preventInstallInWin9x MessageBox MB_OK "Notepad++ does not support your OS. The installation will be aborted." Abort - StrCmp $WinVer "XP" 0 +3 ; XP + StrCmp $WinVer "XP" 0 xp_endTest ; XP MessageBox MB_YESNO "This version of Notepad++ doesn't support Windows XP. The installation will be aborted.$\nDo you want to go to Notepad++ download page for downloading the last version which supports XP (v7.9.2)?" IDYES xp_openDlPage IDNO xp_goQuit xp_openDlPage: ExecShell "open" "https://notepad-plus-plus.org/downloads/v7.9.2/" xp_goQuit: Abort +xp_endTest: - StrCmp $WinVer "2003" 0 +3 ; Windows Server 2003 + StrCmp $WinVer "2003" 0 ws2003_endTest ; Windows Server 2003 MessageBox MB_YESNO "This version of Notepad++ doesn't support Windows Server 2003. The installation will be aborted.$\nDo you want to go to Notepad++ download page for downloading the last version which supports this OS?" IDYES ws2003_openDlPage IDNO ws2003_goQuit ws2003_openDlPage: ExecShell "open" "https://notepad-plus-plus.org/downloads/v7.9.2/" ws2003_goQuit: Abort +ws2003_endTest: FunctionEnd Var noUserDataChecked