Re-package Java Runtime Environment MSI Tutorial:

The following tutorial will explain how to extract the jre1.6.0_#.msi and data1.cab files from the offline Java installer for deployment via Active Directory/Group Policy.

  1. Download the offline JRE installer from one of the following locations: - jre-6u#-windows-i586-s.exe

    • http://www.java.com/en/download/manual.jsp
    • http://java.sun.com/javase/downloads/index.jsp

  2. Run the installer and but don't begin installation.

  3. Whilst the installer is still open, navigate to C:\Documents and Settings\username\Application Data\Sun\Java\jre1.6.0_# and copy the contents of this folder to a safe location.

    The contents must include Data1.cab and jre1.6.0_#.msi
    The contents of Data1.cab must include:

    • core.zip
    • patchjre.exe
    • regutils.dll
    • zipper.exe

  4. Test the installer by ammending and running the following command, the /qb will perform a quit install (no questions!)
    msiexec /i c:\<dir>\jre1.6.0_#.msi /qb
  5. If the installation is successful (i.e. if "Java (TM) 6 Update #" shows up in Add/Remove Programs in Control Panel) you can then assign it via a Group Policy Object (see http://support.microsoft.com/kb/816102).

    Note: Make sure you move the Data1.cab and jre1.6.0_#.msi to a share/location that all your workstations have access to and create the Group Policy Object to point to the jre1.6.0_#.msi in that share/location.



Version Compatibility:

This installation guide has worked with all tested versions and is known to work for the following Java Offline Installers:
- jre1.6.0_3
- jre1.6.0_13
- jre1.6.0_20


Disable Java Autoupdate:

It's currently not possible to disable Java Autoupdate, via the installer (see http://bugs.sun.com/view_bug.do?bug_id=6559555), or via group policy using a registry key (see http://bugs.sun.com/view_bug.do?bug_id=6495497).

Currently the only way to disable automatic updates is to manually configure it via the java control panel on each workstation.

Error 1311. Source file not found: Data1.cab:

This error is generated if the Data1.cab file isn't in the same folder as the jre1.6.0_#.msi - see tutorial above for where to locate data1.cab and jre1.6.0_#.msi

1606 error:

If you experience this error, during the test installation try replacing the /qb switch with /qn.
Reference: http://itninja.com/link/download-here
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer


It's currently not possible to disable Java Autoupdate, via the installerNot natively, no, but altering a bunch of properties and/or deploying the deployment.properties file using a transform handles that. Both are documented in the 'Package KB' and in many posts in this forum.
Answered 06/17/2010 by: VBScab
Red Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Java 6 u31 seems to require only the below for the update to be turned off:


So: just create a transform, make sure above properties are in there and set correctly, and you should be allright. If we look for running processes we see jusched.exe is not running after we installed the package using our transform.
Answered 03/20/2012 by: DeDaas
White Belt

  • The MST I deployed with 6u31 has: AUTOUPDATECHECK = 0, JAVAUPDATE = 0, JU = 0. After applying the package, I don't see JUSCHED or any other service, suggesting autoupdate is running.
Please log in to comment

For Windows 7, the folder you are looking for in step 3 is c:\Users\\AppData\LocalLow\Sun\Java\jre1.60_##

Answered 03/26/2012 by: vehmeier
Senior Yellow Belt

Please log in to comment

Here is a script that will remove the previous versions of Java and install Java 7 update 11!



Answered 01/31/2013 by: c_brock
Third Degree Brown Belt

Please log in to comment