Java 6 update 26 has been released.
Let’s get the newest version of Java updated in your company through an unattended installation.
(Need to see which versions of Java are installed before starting a deployment?)
Download the most recent version of Java. (We’re demonstrating update 26). Download the “Offline” version.
Similar to earlier versions of Java updates, we’re going to extract the install files from the jre-6u26-windows-i586-s.exe that we downloaded. We do this by double-clicking on the exe and “starting” an install. (We will cancel the install after we grab our extracted files).
You’ll see a window pop up:
Don’t proceed past this window. After we get the files we need we’ll cancel this installation.
Open %LOCALAPPDATA%\..\locallow\Sun and you’ll see your installation directory Java. Drill into Java and then into the version directory (in this case jre1.6.0_26).
Your window address should look like this:
Go ahead and drill into the directory and you’ll see the files that you need for installing Java silently.
- Data1.cab (required)
- jre1.6.0_26.msi (required, obviously)
- sp1033.MST (for customization, if desired)
I’ve installed Java successfully without including the gtapi.dll, lzma.dll, or the OpenOffice banner (which is just an advertisement should you proceed with the GUI installation).
If you wish to make customziations you can modify the sp1033.MST (Microsoft Transform File). Here is a
post on modifying the transform. However there are a number of msi parameters that you can call to make the same customizations without the need of modifying the transform. In this example we will not be including the transform at all.
Copy the Data1.cab and jre1.6.0_26.msi to a new directory either on your console system or on a fileshare. From your new location right-click on the jre1.6._26.msi and select “Deploy with PDQ”. (Don’t have PDQ Deploy installed? It’s free. You can get it here.)
(Right-clicking on the .exe or .msi is a nifty trick when using PDQ Deploy. This will auto create your Java installer within PDQ Deploy. All we need to do now is give it a name and provide any extra parameters, if we choose.
Give your installer a name and any parameters that you would like to use. If you choose to use the sp1033.MSP you will need to call it now in the parameters section (TRANSFORMS=sp1033.MSP).
Two popular parameters used prior to update 10 still seem to be floating around (IEXPLORE=1 and MOZILLA=1). These are deprecated effective with update 10 as Java now registers itself with every browser on the client.
One parameter that should be thought out carefully before using is the STATIC=1 parameter. This will prevent this particular version from being updated by future patches. This may be necessary if you use 3rd party applications that require a specific version of Java where the vendor has shown reluctance in releasing updated versions to match Java releases. Just be careful, one of the nice features of recent Java updates is the ability to remove previous versions of Java. This results in a cleaner installation.
After naming your installer and providing any parameters, you’re ready to create the installer and then deploy to some test target machines.
By default all MSI installations are set to be silent (your users won’t see the installation occur). Click save and then Deploy Now.
This will open the deployment window where you can select targets and change the admin account that will perform the installation (if necessary).
Click “Deploy Now” and your unattended silent installation will begin. If any of your systems fail you will receive an explanation (insufficient rights, target not online, target not known, etc.).
The Java installation should take only a few minutes, depending upon the number of targets that you are pushing to.