Java Silent Installation and MSI Extraction Instructions

java logo

Extraction

If you wish to extract the MSI file yourself from the offline installer for Java, then you can follow this simple guide:

Once you have the executable installer you should launch the file until you get to the “Welcome to Java” dialogue page. You should not click the Install button, instead, navigate to your local appdata folder (the user Application Data folder). The location of the local appdata folder is different for each Windows platform.

Note: You can navigate directly to your appdata folder by typing from a run box:

%APPDATA%

The different locations for the local appdata folders per operating system are below:

NOTE: from version 8 update 60, replace “Sun” with “Oracle” for this part.

Windows Vista and Windows 7

C:\Users\<username>\AppData\LocalLow\Sun\Java\jre<version_number>

Version 8 update 60 onward

C:\Users\<username>\AppData\LocalLow\Oracle\Java\jre<version_number>

Windows XP

C:\Documents and Settings\<username>\Local Settings\ApplicationData\Sun\Java\jre<version_number>

Version 8 update 60 onward

C:\Documents and Settings\<username>\Local Settings\ApplicationData\Oracle\Java\jre<version_number>

Windows 2000

C:\Documents and Settings\<username>\ApplicationData\Sun\Java\jre<version_number>

Version 8 update 60 onward

C:\Documents and Settings\<username>\ApplicationData\Sun\Oracle\jre<version_number>

The jre<version_number> folder will contain two files (one MSI file version 8 update 60 onwards):

  • Data1.cab
  • jre<version_number>.msi

Copy the MSI and CAB files from the appdata folder and into a new folder on your desktop (or any other temporary location).

Now, going back to your Java installation, click the Cancel button to terminate the installation. There is no need to continue installation after the MSI and CAB files have been extracted.

You can now use these two files to distribute over your network in your preferred method.

Version 8 Update 60 and above – MSI tweak for deployment

You may notice that using the extracted MSI files from version 8 update 60 and above, does not work. This is due to a setting within the MSI that needs to be changed.

Using Orca, edit the MSI file and go to the CustomAction table and look for “installexe“. Then look for the Type – this should be 1042 like below:

Java Orca Extract

Click to enlarge

This needs to be changed to “3090” and then save the MSI file like below:

Java Orca Extract 2

Click to enlarge

You can then use this MSI file for network distribution.

Feedback

If you have any questions or feedback about this guide, please feel free to leave us a message below in our comments section.


You might also like...

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.