mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-22 13:29:08 +02: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
|
||||
${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
|
||||
SetOutPath "$INSTDIR"
|
||||
!ifndef ARCH
|
||||
|
||||
Reference in New Issue
Block a user