Installation: Retry option on running application.
This commit is contained in:
parent
114d1077b7
commit
6f3cd83981
1 changed files with 2 additions and 1 deletions
|
|
@ -964,10 +964,11 @@ SectionEnd
|
||||||
|
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
retry:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ExecWait '"cmd" /C ""%SystemRoot%\System32\tasklist" /NH /FI "IMAGENAME eq @CPACK_NSIS_MUI_FINISHPAGE_RUN@" | "%SystemRoot%\System32\find" /I /C "@CPACK_NSIS_MUI_FINISHPAGE_RUN@""' $0
|
ExecWait '"cmd" /C ""%SystemRoot%\System32\tasklist" /NH /FI "IMAGENAME eq @CPACK_NSIS_MUI_FINISHPAGE_RUN@" | "%SystemRoot%\System32\find" /I /C "@CPACK_NSIS_MUI_FINISHPAGE_RUN@""' $0
|
||||||
IntCmp $0 1 notRunning
|
IntCmp $0 1 notRunning
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "@CPACK_NSIS_MUI_FINISHPAGE_RUN@ is running. Please close it first from the application menu and restart the installation." /SD IDOK
|
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "@CPACK_NSIS_MUI_FINISHPAGE_RUN@ is running. Please close it first from the application menu and restart the installation." /SD IDCANCEL IDRETRY retry
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
notRunning:
|
notRunning:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue