Ask user before closing LibreWolf in installer
This commit is contained in:
parent
709882a499
commit
35bd388d25
1 changed files with 7 additions and 1 deletions
|
|
@ -43,7 +43,13 @@ Section
|
||||||
SetErrorlevel 2
|
SetErrorlevel 2
|
||||||
Abort
|
Abort
|
||||||
|
|
||||||
DetailPrint "${APPNAME} is still running. Closing it gracefully..."
|
DetailPrint "${APPNAME} is still running"
|
||||||
|
MessageBox MB_OKCANCEL "LibreWolf is still running and has to be closed for the setup to continue." IDOK continue IDCANCEL break
|
||||||
|
break:
|
||||||
|
SetErrorlevel 1
|
||||||
|
Abort
|
||||||
|
continue:
|
||||||
|
DetailPrint "Closing ${APPNAME} gracefully..."
|
||||||
nsProcess::_CloseProcess "${EXECUTABLE}"
|
nsProcess::_CloseProcess "${EXECUTABLE}"
|
||||||
Pop $R0
|
Pop $R0
|
||||||
Sleep 2000
|
Sleep 2000
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue