From ab84c4f7b18eacb09b37beed50d49a407f7487f4 Mon Sep 17 00:00:00 2001 From: Freddie Akeroyd Date: Fri, 3 Jan 2025 18:28:08 +0000 Subject: [PATCH] Kill caRepeater if running --- installation_and_upgrade/remove_genie_python.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installation_and_upgrade/remove_genie_python.bat b/installation_and_upgrade/remove_genie_python.bat index b921173..1d60bff 100644 --- a/installation_and_upgrade/remove_genie_python.bat +++ b/installation_and_upgrade/remove_genie_python.bat @@ -13,6 +13,10 @@ if exist "%remove_genie_python_path%" ( REM Checks that "Python_Build_" is in the supplied filepath, so it is a python build. echo.%remove_genie_python_path% | findstr /C:"Python_Build_">nul && ( + REM if caRepeater is running we can't remove directory + del /f "%remove_genie_python_path%\CaRepeater.exe" + if exist "%remove_genie_python_path%\CaRepeater.exe" taskkill /f /im CaRepeater.exe + REM Deletes directory tree + quiet. RMDIR /S /Q %remove_genie_python_path%