mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 13:12:40 +02:00
don't prompt to attempt process close
This commit is contained in:
parent
27e375e8e6
commit
a69b2fabd3
1 changed files with 3 additions and 20 deletions
|
@ -1026,26 +1026,9 @@ FunctionEnd
|
|||
!define UniqueID ${__LINE__}
|
||||
|
||||
; the process is running, ask the user if they want us to close it
|
||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
||||
"${displayName} cannot be ${action} while ${displayName} is running.$\r$\nWould you like the ${prompter} to try closing it?" \
|
||||
/SD IDCANCEL IDOK AttemptClose_${UniqueID} IDCANCEL Abort_${UniqueID}
|
||||
|
||||
AttemptClose_${UniqueID}:
|
||||
; attempt to close the given process
|
||||
${nsProcess::CloseProcess} ${applicationName} $R0
|
||||
|
||||
; check if the process was closed
|
||||
${If} $R0 == 0
|
||||
; closed the running application
|
||||
Goto Next_${UniqueID}
|
||||
${Else}
|
||||
; couldn't close the running application, bail
|
||||
Abort
|
||||
${EndIf}
|
||||
Abort_${UniqueID}:
|
||||
Abort
|
||||
Next_${UniqueID}:
|
||||
!undef UniqueID
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION \
|
||||
"${displayName} cannot be ${action} while ${displayName} is running.$\r$\nPlease close ${displayName} and try again."
|
||||
Abort
|
||||
${EndIf}
|
||||
!macroend
|
||||
|
||||
|
|
Loading…
Reference in a new issue