mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 14:59:09 +01:00
[client] Stop the service and UI before the NSIS installer extracts files (#8255)
This commit is contained in:
@@ -198,6 +198,15 @@ FunctionEnd
|
|||||||
######################################################################
|
######################################################################
|
||||||
Section -MainProgram
|
Section -MainProgram
|
||||||
${INSTALL_TYPE}
|
${INSTALL_TYPE}
|
||||||
|
; The previous uninstaller stops the service and the UI only when its uninstall key
|
||||||
|
; is found and endpoint protection lets the unsigned uninstaller run. Extraction
|
||||||
|
; fails on any exe that is still running.
|
||||||
|
DetailPrint "Stopping Netbird service..."
|
||||||
|
ExecWait '"$INSTDIR\${MAIN_APP_EXE}" service stop'
|
||||||
|
DetailPrint "Terminating ${UI_APP_NAME} process..."
|
||||||
|
ExecWait '"$SYSDIR\taskkill.exe" /im ${UI_APP_EXE}.exe /f'
|
||||||
|
; Both return before the processes release their image files.
|
||||||
|
Sleep 3000
|
||||||
# SetOverwrite ifnewer
|
# SetOverwrite ifnewer
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
!ifndef ARCH
|
!ifndef ARCH
|
||||||
|
|||||||
Reference in New Issue
Block a user