Skip to content
Snippets Groups Projects
Commit 1680f70c authored by Olivier SOLDANO's avatar Olivier SOLDANO
Browse files

auto-update: add process killer for older versions

In order to be able to update smoothly the versions preceding
the merge of patch 5665, we have to kill manually the process
Ring.exe, this patch adds the functions from the NsProcess
plugin for NSIS enabling such comportment.
The buildmachine script have to be modified in order to fetch this dependency

Change-Id: I0760284133413086dc2b36011c6fa7f2b511043a
parent f62caa35
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,16 @@ Function LaunchLink ...@@ -74,6 +74,16 @@ Function LaunchLink
FunctionEnd FunctionEnd
section "install" section "install"
!addincludedir "../../NsProcess/Include"
!addplugindir "../../NsProcess/Plugin"
!include "nsProcess.nsh"
# Kill all remaining Ring processes
${nsProcess::FindProcess} "Ring.exe" $R0
${If} $R0 == 0
${nsProcess::KillProcess} "Ring.exe" $R0
${EndIf}
Sleep 500
# Files for the install directory - to build the installer, these should be in the same directory as the install script (this file) # Files for the install directory - to build the installer, these should be in the same directory as the install script (this file)
setOutPath $INSTDIR setOutPath $INSTDIR
# Files added here should be removed by the uninstaller (see section "uninstall") # Files added here should be removed by the uninstaller (see section "uninstall")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment