mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:00:43 +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__}
|
!define UniqueID ${__LINE__}
|
||||||
|
|
||||||
; the process is running, ask the user if they want us to close it
|
; the process is running, ask the user if they want us to close it
|
||||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
MessageBox MB_OK|MB_ICONEXCLAMATION \
|
||||||
"${displayName} cannot be ${action} while ${displayName} is running.$\r$\nWould you like the ${prompter} to try closing it?" \
|
"${displayName} cannot be ${action} while ${displayName} is running.$\r$\nPlease close ${displayName} and try again."
|
||||||
/SD IDCANCEL IDOK AttemptClose_${UniqueID} IDCANCEL Abort_${UniqueID}
|
Abort
|
||||||
|
|
||||||
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
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue