Java is something I am reluctantly still deploying in my work environment (thanks INB…). Anyone that has worked with MSI installers knows they are more native to Windows Installer than EXE installers. So being able to obtain an MSI for Java can be very handy, especially when deploying through SCCM like I do.
Java MSIs cannot be downloaded directly from the Java wesbite; instead the EXE installer must be downloaded, extracted to a temp location, and then the MSI manually pulled from there.
First download the Java Offline Installer. The easiest way to get this is from the Java Manual Downloads page: https://www.java.com/en/download/manual.jsp
Next run the offline installer EXE to begin the Java Setup wizard. Do not continue through the wizard, just open it so the Welcome page appears:
At this point the Java install files will have been extracted to a temp location at: C:\Users\%username%\AppData\LocalLow\Oracle\Java
NOTE: Older Java prior to version 8 may be extracted to a Sun folder instead of an Oracle folder: C:\Users\%username%\AppData\LocalLow\Sun\Java
Next open the folder reflecting the appropriate Java version that was downloaded such as jre1.8.0_111 and the Windows Installer Package MSI should be there:
Copy this file and use it to install the specified Java version via MSI. It is particularly easy to deploy via Group Policy or SCCM.