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. http://www.get-itsolutions.com
2. 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.
• Download and extract msi.
• Create .cmd file for java silent install.
• Execute command.
• Uninstall all version of java
3. 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
:
C:UsersUserNameAppDataLocalLowSunJava 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.
4. 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_MACHINESOFTWAREMicrosoftWindowsCurrentV
ersionUninstall” 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”.
5. 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 "%~ java8.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 "%~ java8.40x64.msi " JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0
RebootYesNo=No WEB_JAVA=1 /q
del /S /F /Q "C:Program Files (x86)Common FilesJava"
@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.
6. 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.
7. Deploy Java.
You can deploy java with sccm 2012. For more
information follow the link : Deploy Java
For more Info go to: www.get-itsolutions.com
Thank YOU