From 9db0878c98a722257690be68b3a0d98a27cbdb9d Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 25 Apr 2021 20:50:49 +0200 Subject: [PATCH] cyberjack script improved --- optional/install-cyberjack.cmd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/optional/install-cyberjack.cmd b/optional/install-cyberjack.cmd index 4894765..25c9f22 100644 --- a/optional/install-cyberjack.cmd +++ b/optional/install-cyberjack.cmd @@ -8,13 +8,18 @@ if NOT EXIST %EXE% ( exit /b ) +if EXIST "%ProgramFiles(x86)%\REINER SCT\cyberJack\cJCC.exe" ( + echo ERROR: Reiner SCT Cyberjack already installed! + exit /b +) + echo ####### %0 ####### echo installing Reiner SCT Cyberjack ... start /wait %EXE% echo moving CyberJack startmenu shortcut ... -move /Y %STARTMENU%\"Reiner SCT cyberjack\cyberjack*.*" %STARTMENU%\CyberJack.lnk +move /Y %STARTMENU%\"Reiner SCT cyberjack\cyberjack Device Manager*.*" %STARTMENU%\CyberJack.lnk echo removing CyberJack startmenu folder ... rd /S /Q %STARTMENU%\"Reiner SCT cyberjack" 2>nul