Get IT Solutions

How to do IT
Menu
  • Home
  • SCCM 2012
    • Deploy Packages
    • Troubleshooting errors SCCM 2012
  • Windows
    • Applications Silent Install
    • Windows Tools
    • Windows Error
    • Script
    • Exchange Server
    • Troubleshooting Office
    • Applications Errors
  • Database
    • SQL Server
    • MySQL
    • Oracle
  • Cybersecurity
  • Other
  • Reviews

Java Silent Install and Uninstall Older Version – Deploy Package MSI

This tutorial will explain how to silent install Java MSI/EXE version and disable auto-update. The command line will also uninstall the older version of Java and install a new version.

READ ALSO -   Silent Install Mozilla Firefox msi and exe file - Including Silent Uninstallation

Also silent install guides for other application here: Complete List

Table of Contents

  • Java Silent Install
    • How to Silent Install Java (32-bit) (EXE)
    • How to Silent Install Java (64-bit) (EXE)
    • How to Silent Install Java MSI Version
    • Silent Install with an additional configuration file
    • How to Disable JAVA Auto-Update on installation
    • How to Disable JAVA Auto-Update on Regedit
    • How to Create an Installation Log File
    • How to remove the Older version during installation:
    • How to Uninstall Java Silently:
    • How to find the Product key of java
    • How to extract MSI for Java
    • How to create a package to deploy Java over the network
    • Deploy Java.

Java Silent Install

How to Silent Install Java (32-bit) (EXE)

  1. Download the EXE 32-bit file from:
    https://www.java.com/en/download/manual.jsp
  2. Download the file to a folder like (C:\Install_Test)
  3. Open a CMD by Right-Clicking on CMD and select Run as Administrator
  4. Navigate to the C:\Install_Test folder
  5. Enter the following command:
    MsiExec.exe /i jre-8u261-windows-i586.exe /s REBOOT=Suppress
  6. Change the “jre-8u261-windows-i586.exe” with your downloaded version.
  7. Press Enter

Java should be installed and find entries in the Programs and Features in the Control Panel.

 

How to Silent Install Java (64-bit) (EXE)

  1. Download the EXE 64-bit file from:
    https://www.java.com/en/download/manual.jsp
  2. Download the file to a folder like (C:\Install_Test)
  3. Open a CMD by Right-Clicking on CMD and select Run as Administrator
  4. Navigate to the C:\Install_Test folder
  5. Enter the following command:
    start /wait jre-8u261-windows-x64.exe /s REBOOT=Suppress
  6. Change the “jre-8u261-windows-x64.exe” with your downloaded version.
  7. Press Enter

 

How to Silent Install Java MSI Version

  1. Download MSI Version of Java explained below
  2. Save the file to a folder like (C:\InstallJava_Test)
  3. Open a CMD by Right-Clicking on CMD and select Run as Administrator
  4. Navigate to the C:\InstallJava_Test folder
  5. Enter the following command:
    start /wait msiexec /i "%~dp0jre1.8.0_261.msi" RebootYesNo=No /q
  6. Press Enter

 

Silent Install with an additional configuration file

If you want to use more advanced changes, you will need to create a configuration file to use it with the offline EXE installer.

Step 1 – Create a text file, save it as a .cfg extension

Step 2 – Use the options below to carry out what you want to do with your installer:

INSTALL_SILENT=Enable, Disable
INSTALLDIR=PATH
AUTO_UPDATE=Enable, Disable
WEB_JAVA=Enable, Disable
WEB_JAVA_SECURITY_LEVEL=H (high), VH (very high)
EULA=Enable, Disable
REBOOT=Enable, Disable
NOSTARTMENU=Enable, Disable
SPONSORS=Enable, Disable

Note! Change the parameters as you need. For example “INSTALL_SILENT=Enable”

Step 3 – Save the config is in the same directory as the installer exe, the option INSTALLCFG="%cd%\jre-install-options.cfg" can be used.

Step 4 – The command line you would then use to run the offline installer and configuration file would be:

jre1.8.0_91.exe INSTALLCFG=”%cd%\jre-install-options.cfg”

 

How to Disable JAVA Auto-Update on installation

To disable Java Auto Updates You need to use the following command:

For EXE version:

start /wait jre-8u261-windows-i586.exe /s AUTO_UPDATE=0

start /wait jre-8u261-windows-x64.exe /s AUTO_UPDATE=0

For MSI version:

start /wait msiexec /i "%~dp0jre1.8.0_261.msi" /q JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0

 

How to Disable JAVA Auto-Update on Regedit

To disable Java Auto Updates on regedit for 32 an 64-bit version you need to use the following command:

Disable java updates 32-bit:

reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f

Rem Disable Java Update 64-bit:

reg add "HKCU\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f

REM Disable Auto Update Check:

reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 00000000 /f

 

How to Create an Installation Log File

You can generate logs during installation when you use the MSI or EXE installer. So in this case you can troubleshoot if anything goes wrong.

For Exe Version

start /wait jre-8u261-windows-i586.exe /s REBOOT=Suppress /L "C:\Install_Test"

start /wait jre-8u261-windows-x64.exe /s REBOOT=Suppress /L "C:\Install_Test"

For MSI Version

start /wait msiexec /i "%~dp0jre1.8.0_261.msi" RebootYesNo=No /q /L*V "C:\Install_Test"

How to remove the Older version during installation:

To remove the oldest version during the installation of the new one you can use “REMOVEOUTOFDATEJRES=1”. This parameter working only with the MSI version:

start /wait msiexec /i "%~dp0jre1.8.0_261.msi" RebootYesNo=No /q REMOVEOUTOFDATEJRES=1

 

How to Uninstall Java Silently:

  1. Open a CMD window as Administrator
  2. Enter one of the following commands:
Java 8 update 91 (32-bit)
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83218091F0} /qn
Java 8 update 91 (64-bit) (64-bit)
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86418091F0} /qn

Press Enter

Note! please keep in mind that every java version has a different product key. See below the method to find the product key

 

How to find the Product key of java

To find the product key of the applications you will need to navigate to the following path and search for the JAva entry. UninstallString is the key that contains the product key.

(64-bit)

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

(32-bit)

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\

 

How to extract MSI for Java

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.

Step 1 – First select windows offline to download the .exe on PC. After downloaded, execute the .exe file

Step 2 – Once you see the “Welcome to  Java” go to :

Java Silent Install

Java Silent Install

 

C:\Users\UserName\AppData\LocalLow\Sun\Java

For news version of java:

C:\Users\Administrator\AppData\LocalLow\Oracle\Java

Step 3 –  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 it to a folder in your computer.

Step 4 – Repeat this for the 64-bit version and save MSI to the same folder.

 

How to create a package to deploy Java over the network

MSI version

Step 1 – Download the EXE 64-bit file from:
https://www.java.com/en/download/manual.jsp

Step 2 – Extract the MSI file explained above. Repeat for both 32 and 64-bit versions and save them to a new folder “C:\Install_Test” with a different name.

Step 3 – Create the batch file

Open notepad and write the following command line:

@echo off
REM Uninstall Java X 32bit (replace Product code 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 Product code with your java version)
Start /wait msiexec.exe /x {Product code of your older java 64bit} /qn /norestart
REM Java MSI Silent Install version X 32Bit (replace with your java version downloaded)
start /wait msiexec /i "%~dp0java8.261x32.msi " JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q
REM Silent install Java MSI version X 64Bit (replace with your java version downloaded)
start /wait msiexec /i "%~dp0java8.261x64.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

Step 4 – Save the notepad file as install.cmd inside the folder where we copied the Java MSI files “C:\Install_Test”.

Step 5 – Just right-click on install.cmd and run as administrator. As a result, the install will be finished after a few seconds.

Note! Change on the script the name of the MSI files as per yours!

Exe Version

Step 1 – Download the EXE 32-bit and 64-bit file from:
https://www.java.com/en/download/manual.jsp

Step 2 – Save them to a new folder “C:\Install_Test”.

Step 3 – Create a new text file named install.cmd in the same folder “C:\Install_Test” and copy/save below the command line:

REM Uninstall Java 8 Update 50
start /wait msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83218051F0} /qn /norestart
REM Uninstall Java 8 Update 50 64 bit
start /wait msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F86418051F0} /qn /norestart
REM Silent Install Java exe version
@ECHO OFF

start /wait jre-8u261-windows-i586.exe /s REBOOT=Suppress /L "C:\Install_Test" 
start /wait jre-8u261-windows-x64.exe /s REBOOT=Suppress /L "C:\Install_Test"

@echo Disable Auto Updates
reg delete "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy\jucheck" /v "UpdateSchedule" /f
reg delete "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy\jucheck" /v "UpdateMin" /f
REM Disable java updates
Rem Disable java updates 32-bit:
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f
Rem Disable Java Update 64-bit:
reg add "HKCU\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f
REM Disable Auto Update Check:
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 00000000 /f

Step 4 – Change the product code to install your current version.

Step 5 – Just run As Administrator and will perform a silent installation of java.

The script will uninstall the older version of java, install a new version, and also disable auto-updates.

Java Offline EXE Silent Installation

Java Offline EXE Silent Installation

Deploy Java.

Finally, you can deploy java with sccm 2012. Moreover follow the link for more information: Deploy Java

If you have any questions about the silent install of java feel free to ask in the comment section.

Share
Tweet
Google+
Pinterest
Linkedin
Stumble
Email
Prev Article
Next Article

Related Articles

Adobe Air silent install will explain the silent installation off …

Adobe Air silent install uninstall msi and exe version

Office Silent Install
The following article will explain office silent install. Include silent …

Office silent install and uninstall solutions – office 2013 and 2010.

Best Computers & Laptops

Best Computer for Cyber Security – Laptop and Desktop
Best Computer for Cyber Security
Hey, are you seeking the best computer for cyber security? Well, we must say you have come to the right place to find your answer and guidance. There are a plethora of products out there for you to pick from ...
Read More
Best Computer for Microsoft Office & Excel – Laptop and Desktop
Best Computer for Microsoft Office & Excel
Are you finding the Best Computer for Microsoft Office and Excel? In modern days, the best laptop or desktop set is the one which is both portable, has good looks and offers the smoothest performance. Microsoft Office is a package ...
Read More
Best Computer for Hacking – Laptop and Desktop Selection
Best computer for Hacking
When it comes to hacking, either laptop or desktop, choosing the best computer for hacking would be an exhilarating job. There are many specifications to be considered for hacking ...
Read More

SQL Server Tips

FIX sqlstate 42000 – mysql error 1064 – you have an error in your sql syntax
Sqlstate 42000 Is a general code that come together with other number. Most often comes with the code 1064 and ...
Read More
The execute permission was denied on the object – SQL Server Error
The execute permission was denied on the object
The following article will handle “the execute permission was denied on the object” error appears on SQL Server. This error ...
Read More
How to Read Data from LDF file in SQL Server – A Complete Guide
Read LDF File
Hello Everyone, Today we are going to address the most popular query of SQL users, how to read data from ...
Read More

Search

We are on:

Get FREE SPACE for your PC

3 Method to Delete Temp Files in Windows 7/10 including vbs script

In this post we will explain how to delete temp files windows 7 using three different methods including vbs script ...
Read More

Fastest way to delete hiberfil sys from windows 10/8/7 and XP – CMD

In this article we will explain how to remove or delete hiberfil sys from Windows 10/8/7 and XP . If you does ...
Read More

Learn How to Silent Install Applications

Silent Install Adobe Flash Player
In this tutorial will explain how to silent install adobe flash player 25, Msi and Exe version. How to disable auto update and uninstall older ...
Read More
Java Silent Install and Uninstall Older Version – Deploy Package MSI
This tutorial will explain how to silent install Java MSI/EXE version and disable auto-update. The command line will also uninstall the ...
Read More
Silent Install Adobe Shockwave Player 12 and disable update
In this tutorial will explain how to silent install Adobe Shockwave Player 12 msi and disable auto update. The command will uninstall older ...
Read More
Silent Install Google Chrome MSI, Silent Uninstall and Disable Auto Update
This tutorial will explain how to silent install Google Chrome MSI and disable auto update. The command will uninstall older version of ...
Read More
Silent Install Adobe Reader 11 and DC – msi and exe – disable update
In this tutorial will explain how to silent install Adobe Reader version 11 and DC. We will user both version "msi" ...
Read More
Silent Install Mozilla Firefox msi and exe file – Including Silent Uninstallation
This tutorial will explain how to silent install Mozilla Firefox. We will use MSI and EXE files to perform a silent ...
Read More
Skype Silent Install Msi and disable updates
In this tutorial will explain how to silent install skype  and disable auto update. The command will uninstall older version of Skype and ...
Read More
Filezilla Silent Install msi and exe version
Filezilla silent install tutorial will explain how to perform a silent installation of application. We will explain methods, silent install ...
Read More
Silent install VLC Media Player
In this tutorial will explain how to silent install VLC Media Player. We will explain both methods for exe and ...
Read More
Notepad++ silent install exe and msi version – Command Line
Notepad++ silent install is the new article from a series of silent installations. Notepad++ as free software has two main ...
Read More

Batch File Solutions

How to list files in cmd – Command Prompt – Windows 10
Whenever you want to search and make a list of all files on a specific folder, you used the windows ...
Read More
Batch rename multiple files in folder – CMD script – Bulk Method – Win 10
The following article will teach how to rename multiple files in a folder with the bulk method using Command Line ...
Read More
Batch script rename file using Command Line (CMD) & PowerShell – Windows 10
The following article will use the “rename” or “ren” command to rename the file using a command prompt. Also, we ...
Read More
Change extension of multiple files at once – CMD batch file
The following article will teach the methods to change the extension of multiple files at once using command prompt and ...
Read More
How to delete registry key with command line | PowerShell | Batch
The following article is the third of series about registry and working on it through command line (CMD) and PowerShell ...
Read More
How to add registry key & values with CMD | PowerShell | Batch
The registry is the place where most of the applications store the settings but not only. Used also from the ...
Read More
Unmap Network Drive CMD – (Batch file) – net use delete command
After we posted the methods to map network drive using cmd commands we come this time with the method to ...
Read More
Map Network Drive cmd (batch file) – net use user password
This article will focus on another way to map a network drive on your computer instead of from the explorer ...
Read More
How to Find Large Files on Windows 7 & 10 – CMD Forfiles Command
If the capacity of your hard drive is running low, it is time to clean off some files and to ...
Read More
CMD Script to check disk space on windows and multiple remote servers
The following article will provide you script to check disk space. The Script monitor space on windows and multiple remote ...
Read More

Get IT Solutions

How to do IT

About Us

Get IT Solutions is a personal blog, which is managed to guide people for various topic.

Second Menu

  • Donate
  • About Us
  • Contact Us
  • Privacy Policy

What Will You Find

Automation is our area of writing where are included scripts, batch and various tips to automate your daily job.
Copyright © 2025 Get IT Solutions