2022-11-13 22:12:39 +01:00
|
|
|
@echo off
|
|
|
|
call check-for-admin
|
2022-11-25 15:29:57 +01:00
|
|
|
if %ERRORLEVEL% neq 0 exit /b
|
2022-11-13 22:12:39 +01:00
|
|
|
|
|
|
|
set CONFIG=config\install-java.txt
|
|
|
|
set EXE=..\software\java-setup.exe
|
|
|
|
|
|
|
|
if NOT EXIST %EXE% (
|
|
|
|
echo ERROR: %EXE% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
echo installing JAVA ...
|
|
|
|
start /wait %EXE% INSTALL_SILENT=Enable AUTO_UPDATE=0 NOSTARTMENU=1 REBOOT=0 ^
|
|
|
|
INSTALLDIR="%ProgramFiles%\java"
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
pause
|
|
|
|
|