mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-24 10:23:02 -07:00
[Windows] Only pre-check running instances for /R updates
This commit is contained in:
parent
adf6a81cc9
commit
38650b0c4e
1 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue