Friday 27 February 2015

SCCM - Packaging - Java Runtime Environment

Although there are a couple of different ways to package Java Runtime Environment, I have found the following method to be the most reliable and easy to implement:
1] Download the offline installer for either the 64 or 32 bit version of Java Runtime Environment and save it in your C:\temp folder or where ever suits. The url for the download page is, at present, this:
2] Double click on the installer (should be called something like jre-XuXX-windows-i586.exe). When Welcome to Java window appears do not click on the "Install" button. Instead, navigate to the user Application Data folder. In Windows 7 the JRE app data folder can be found here:

    
C:\Users\<user>\AppData\LocalLow\Sun\Java\jre<version_number
Inside you will find a .msi file which should be called something like jre1.X.X_XX.msi. Create a new JRE folder on your SCCM server software share and copy the .msi file into it.
3] Open SCCM and create a new package. Point to the new JRE folder you just created. Distribute the contents to your distribution points.
4] Create a new program with the appropriate switches. For example, the below switches will disable all automatic updates, agree to the EULA, stops Java installing on the start menu, supresses a reboot (if needed) and enables Java for use within browsers with a security level of High:
msiexec /i jre1.8.0_31.msi AUTO_UPDATE=0 EULA=0 NOSTARTMENU=1 REBOOT=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H /qb
Once you've created this, simply advertise it out to the relevant collection.

For more info on the command line switch options for the JRE msi, see the following links:


http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html
If you don't fancy the idea of having a long ole' command line string appended to the .msi file you can always open the file in ORCA, mod the Property tab and generate a transform file


Alternatively you could create a configuration file for deploying JRE:
http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#installing_with_config_file

No comments:

Post a Comment