September 17, 2014 - Nick
MSI for Java installations
Java is up there with Adobe Flash as one of the most challenging third-party applications to manage in a ‘secure’ enterprise environment. With that said, what makes managing applications in the environment easier, is dealing with them in MSI form.
One of the particular challenges with Java is that it comes in it’s own installation package which is difficult to deploy from a script, psexec, sccm or whatever your application deployment vehicle is. Little did I know that the offline java installation actually comes bundled with the MSI.
- In order to find the MSI for any java update (versions 6 and 7), first make sure you download the java offline version:
Once the offline installer is downloaded, go ahead and run it.
- When Welcome to Java window appears do not click Install button and navigate to LocalAppData folder (the user Application Data folder). The location of the LocalAppData folder differs for each Windows platform.
- Then browse to C:\Users\<user>\AppData\LocalLow\Sun\Java\jre<version> – *It’s important to note that if you’re in a secure environment, you’re probably using a ‘RunAs’ command to launch this installation. The MSI will be located in the user directory above of the user account that’s launched the installation.
- jre<version> folder contains two files:-Data1.cab and
You can now go ahead and take these two files and move them to your install share or whatever location you’re looking to deploy from.
- Note: There is no need to continue to install the application as the msi extraction happens after launching the original executable. You can now cancel out of this Welcome to Java screen.
Edit: Found source of this information on Java’s website: http://www.java.com/en/download/help/msi_install.xml