Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Silent Install JAVA
In this tutorial will explain Java silent install msi version 8 and disable auto
update. The command line will uninstall older version of Java and install a
new version.
Java Silent Install msi.
1. Download and extract msi.
2. Create .cmd file for java silent install.
3. Execute command.
4. Uninstall all version of java
Download and extract msi for Java silent install 8.
You can use the .EXE to extract the .MSI. Go to the Java Update
website >>http://www.java.com/en/download/manual.jsp to download the
latest Java Update.
Select windows offline to download the .exe on PC. After downloaded, execute the
.exe file and once you see the “Welcome to Java” go to :
For Windows 7 PC’s and Windows 8
C:\Users\UserName\AppData\LocalLow\Sun\Java and you will see a
directory of past Java Updates plus the new installation directory denoted by the
Java version number.
Get the msi file and save to a folder in your computer with name java8.40x32.msi.
Repeat this for the 64-bit version and save msi to the same folder with name
java8.40x64.msi.
Create the .cmd file for java silent install.
We will create command line to uninstall older version of java and silent
install java 8 version.
Find java product code.
First we need to find the product code of java older version. For this go to
regedit in path
“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni
nstall” and find your java version.
For my case of Java 8 Update 31 is “26A24AE4-039D-4CA4-87B4-2F83218031F0”
for 32 bit.
For 64 bit only change this number 32 to 64: “2F83218031F0” to “2F86418031F0”.
Create .cmd script for java silent install.
Open notepad and write the following command line:
@echo off
REM Uninstall Java X 32bit (replace with your java version)
Start /wait msiexec.exe /x {Product code of your older java 32 bit} /qn
/norestart
REM Uninstall Java X 64bit (replace with your java version)
Start /wait msiexec.exe /x {Product code of your older java 64bit} /qn
/norestart
REM Java Silent Install version X 32Bit (replace with your java version
downloaded)
start /wait msiexec /i "%~dp0java8.40x32.msi " JU=0 JAVAUPDATE=0
AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q
REM Java Silent Install version X 64Bit (replace with your java version
downloaded)
start /wait msiexec /i "%~dp0java8.40x64.msi " JU=0 JAVAUPDATE=0
AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q
del /S /F /Q "C:\Program Files (x86)\Common Files\Java"
@End
This part is for disable java auto update “JU=0 JAVAUPDATE=0
AUTOUPDATECHECK=0”.
Save the notepad file inside the folder where copied java msi file and named
install.cmd.
Execute java silent install version 8.
Just right-click on install.cmd and run as administrator. After few seconds the install
will finished.
Uninstall other version of java.
If you need to uninstall other version of java just copy another line on notepad
(install.cmd) and replace product code with your other java version product code:
REM Uninstall Java X 32bit (replace with your java version)
Start /wait msiexec.exe /x {Product code of your older java} /qn /norestart
In this way you can uninstall all version of java in your computer.
Deploy Java.
You can deploy java with sccm 2012. For more information follow the
link : Deploy Java
Silent install java
--------------------------------------------------------------