[Windows] Only pre-check running instances for /R updates

This commit is contained in:
Lukas Brübach 2026-09-21 18:45:49 +02:00 • committed by GitHub
parent adf6a81cc9
commit 38650b0c4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,11 +132,17 @@ ${EndIf}
Call SetModeDestinationFromInstdir Call SetModeDestinationFromInstdir
; Make sure no application instance is still running (and holding file locks) ; Make sure no application instance is still running (and holding file locks)
; before the previous version is uninstalled or new files are installed. ; before the previous version is uninstalled. On a silent update (/R /S) the
; On a silent update (/R /S) running processes are asked to close gracefully ; running processes are asked to close gracefully and waited for; if they
; and waited for, then force-closed only on timeout. On interactive installs ; refuse to close the update is aborted rather than force-killing them (data
; the user is prompted to close them instead. ; loss, e.g. an unsaved deck). On interactive installs the user is prompted
Call EnsureAppsNotRunning ; to close them instead.
; Only needed this early for /R, where AutoUninstallIfNeeded runs below; for
; interactive installs the section re-checks after the directory page, when
; $INSTDIR is the directory the user actually picked.
${If} $ReinstallMode = 1
Call EnsureAppsNotRunning
${EndIf}
${If} $ReinstallMode = 1 ${If} $ReinstallMode = 1
${AndIf} $PortableMode = 0 ${AndIf} $PortableMode = 0