w10install/optional/install-cyberjack.cmd

33 lines
794 B
Batchfile
Raw Normal View History

2021-03-13 00:30:15 +01:00
@echo off
set EXE=..\software\cyberjack-setup.exe
2021-03-13 00:40:26 +01:00
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
2021-03-13 00:30:15 +01:00
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
2021-04-25 20:50:49 +02:00
if EXIST "%ProgramFiles(x86)%\REINER SCT\cyberJack\cJCC.exe" (
echo ERROR: Reiner SCT Cyberjack already installed!
exit /b
)
2021-03-13 00:30:15 +01:00
echo ####### %0 #######
2021-03-13 13:06:52 +01:00
echo installing Reiner SCT Cyberjack ...
2021-03-13 00:40:26 +01:00
start /wait %EXE%
2021-04-25 20:28:50 +02:00
echo moving CyberJack startmenu shortcut ...
2021-04-25 20:50:49 +02:00
move /Y %STARTMENU%\"Reiner SCT cyberjack\cyberjack Device Manager*.*" %STARTMENU%\CyberJack.lnk
2021-03-13 00:40:26 +01:00
2021-04-25 20:28:50 +02:00
echo removing CyberJack startmenu folder ...
2021-03-13 00:44:33 +01:00
rd /S /Q %STARTMENU%\"Reiner SCT cyberjack" 2>nul
2021-04-25 20:28:50 +02:00
echo removing CyberJack desktop shortcut ...
2021-03-13 00:44:33 +01:00
del /F /Q %PUBLIC%\Desktop\cyberjack*.* 2>nul
2021-03-13 00:30:15 +01:00
echo ####### %0 #######
pause
2021-03-13 00:40:26 +01:00