diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /CMake/Modules/NSIS.template.in | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'CMake/Modules/NSIS.template.in')
| -rw-r--r-- | CMake/Modules/NSIS.template.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMake/Modules/NSIS.template.in b/CMake/Modules/NSIS.template.in index 9e171e28..1d90c653 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 ""$SYSDIR\tasklist.exe" /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 |
