Install Java Silently

Posted on Posted in Uncategorized

UPDATE Jan 2013 This post is specific to Java 6. For Java 7 update info we have an updated blog post here.

Oracle has released Java 6 Update 25. To silently install to all your computers you’ll need to do some extra steps:

  1. Download the “offline” version from the Java website
  2. Manually “start” the installation
  3. Extract the .MSI and necessary data files from the downloaded EXE
  4. Copy the extracted files from %LOCALAPPDATA%
  5. Cancel the manual installation
  6. Deploy Java to all your company computers

First things first, download the off-line version of Java. Be certain to download the offline version (see image below).

Download the offline Java installer for silent installations

The next step is to “extract” the MSI and data files, which allows you to deploy silently vs. using the manual GUI installation. You extract the files by starting a manual installation.

Double click the EXE that you downloaded and the Java installation GUI appears. You will NOT progress past this opening screen, but for now KEEP this window open. The extraction has taken place and we need to grab the files.

PDQ12 Java 25 05

In Windows navigate to the following path.


Java extracts to %LOCALAPPDATA%

This should open a window in the AppData Local directory. Now go up a level to AppData and navigate into the LocalLow sub-directory. You should see a “Sun” directory. Copy that to another location (network share, server, etc.). Inside of this directory are the data files that you will need.

After you have copied the files to another source you can cancel the manual installation.

NOTE: The 32-bit version of Java 1.6 update 25 doesn't delete the file when you cancel the manual installation, but IT DOES delete the file when you run this step on the 64-bit version of the Java update. That's why we suggest you copy the files to another location before canceling the manual installation. 

Now it’s time to deploy Java 1.6 update 25 to your computers. I’m using our free software deployment tool PDQ Deploy. Navigate to the MSI that you extracted and right-click on it.

Select “Deploy with PDQ”.

PDQ Deploy opens up a New Installer window. Give it a title and be certain to select the “Include Entire Directory” checkbox.

Silently Install Java 6

PDQ Deploy automatically populates everything else for you. You can now click OK and the Java installer will be created.

With your installer created you can now deploy to your computers. From PDQ Deploy, select your new Java 1.6 installer and click the Deploy Now button.

A window appears for you to enter which target computers will receive the installation. You have a multiple methods to enter targets:

  1. Manual entry (typing the computer name)
  2. Importing a text file
  3. Active Directory
  4. PDQ Inventory (if installed)
  5. AA Console (if installed)

Install Java using a free installation tool

Enter your target systems and click “Deploy Now” and your installation will begin. Once you’ve started it you can double click on the deployment to get a detailed view of the installation.

PDQ Deploy silently installs Java 6

That’s it. Let your installation complete and you’ll be in business.

Here are a couple of additional items that may be of use to you. I’ll blog about these in the coming days.

With PDQ Inventory (recently released to beta) you can determine which computers do not already have Java 1.6 update 25 installed. This is a fast way to deploy the update to only those systems that need it.

With PDQ Deploy Pro you can run multiple actions or commands in one installer. This is helpful for Java because you should install both the 32-bit and 64-bit versions on your 64-bit Vista and Windows 7 systems that have IE 8. With PDQ Deploy Pro you can do this in one installer.

Please let us know if you have any questions about installing Java or any other application using PDQ Deploy.