Silent Install of JDK and JRE
This week I had a requirement for scripting the installation of the Java 5 JDK and JRE. These instructions require separate install files for the JDK and JRE but will get the job done.
For the JDK, you can place the following in a *.bat file and simply run it from command line:
@echo off echo Installing JDK... start /w C:\temp\jdk-1_5_0_12-windows-i586-p.exe /s /v"/qn INSTALLDIR=d:\bin\Java\jdk1.5.0_12 REBOOT=Suppress"
@echo off echo Installing JRE... start /w C:\temp\jre-1_5_0_12-windows-i586-p.exe /s INSTALLDIR=d:\bin\Java\jre1.5.0_12 REBOOT=Suppress