w10install/optional/install-java.cmd
Michael H.G. Schmidt bc7c372d2e MS-Office integrated
2024-09-08 19:53:09 +02:00

21 lines
379 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
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