From d83a420f0517d7fc47aeb288a6a0cf4891784fcc Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 22 Jun 2026 12:03:44 +0200 Subject: New upstream version 3.0.2+dfsg --- CMake/Modules/NSIS.template.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'CMake/Modules/NSIS.template.in') diff --git a/CMake/Modules/NSIS.template.in b/CMake/Modules/NSIS.template.in index 9e171e28..b14a8623 100644 --- a/CMake/Modules/NSIS.template.in +++ b/CMake/Modules/NSIS.template.in @@ -970,6 +970,22 @@ SectionEnd ; "Program Files" for AllUsers, "My Documents" for JustMe... Function .onInit + ; --- WSJT-X running-process check (custom) --- + ; Abort cleanly if WSJT-X is already running, to avoid a half-installed + ; mess when the user upgrades over a live instance. Uses tasklist+findstr + ; (built into every supported Windows version) so no NSIS plugin is + ; required. + wsjtx_running_check: + nsExec::Exec '"$SYSDIR\cmd.exe" /c tasklist /FI "IMAGENAME eq wsjtx.exe" 2>NUL | $SYSDIR\findstr.exe /I "wsjtx.exe" >NUL' + Pop $0 + ${If} $0 == "0" + MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION \ + "WSJT-X is currently running. $\n$\nPlease close it before installing or upgrading." \ + /SD IDCANCEL IDRETRY wsjtx_running_check + Abort + ${EndIf} + ; --- end WSJT-X running-process check --- + Push $0 Push $1 Push $2 -- cgit v1.2.3