Here's what is working in my environment so far:
Short version:
Creating the C:\ProgramData\Oracle\Java\java.settings.cfg before installing the MSI allows me to deploy Java 8 Update 25 via SCCM.
Long version:
- Extracted the MSI from the EXE installer from Java.com the way we have always done (There was no CAB file this time - don't panic!)
- Using Arthur's jre1.8.0_25_x86.mst transform file and modifying the "Property" table to match the screenshot below. (You could generate your own transform as well - your choice.)
- Using stomie's advice about the C:\ProgramData\Oracle\Java\java.settings.cfg file, I built a VBscript that does the following:
--- Creates the C:\ProgramData\Oracle\Java\ folder if it's missing
--- Backs up any existing java.settings.cfg file that it finds if the folder DOES exists (renames it based on a timestamp)
--- Creates a new java.settings.cfg file in the folder with the settings show in screenshot 2.
- Call the MSI installer with the following parameters: msiexec /i "jre1.8.0_25.msi" TRANSFORMS="jre1.8.0_25_x86.mst" /qn /L*v C:\WINDOWS\CCM\LOGS\jre1.8.0_25_Install.log
Once the installation completed, I went to Java.com and Javatester.org to confirm that Java 8U25 was functional and so far it has worked 100% of the time.
The only caveat to this is that I have only been able to test it on 8 systems so far. (Weekends are the busiest time for our company, so I'm limited in what maintenance I can do going into Saturday/Sunday)
Then I built a .cmd file to wrap it all up nicely.
Step 1: Uninstall old software (We use supersedence, but I also have a master list of old software versions GUIDs that I uninstall with a VBScript - this lets me target old versions of Flash, Java, etc. during every deployment. It's a little bit of overkill, but I don't want to get a phone call asking why 3 machines are still running outdated Flash...)
Step 2: Create Java folder and generate the cfg file with the proper settings
Step 3: Run the MSI installation
When I initially configured the "Deployment Type" in System Center, I chose "MSI", then pointed it to the MSI that I extracted. This imported the information and saved me a few steps. Then I just modified the "Installation Program" on the "Programs" tab to call my Ju825.cmd file instead of the msiexec command. (Screenshot 3)
Then I redistributed content, waited for it to finish, and now have it deployed to a device group that I created for testing purposes. So far, the MSI installation has worked on eight machines, and now I'm patiently waiting to test the new, all-inclusive package.
[ATTACH=CONFIG]27268[/ATTACH]
MST Settings, edited in Orca.
[ATTACH=CONFIG]27269[/ATTACH]
java.settings.cfg file generated by VBScript.
[ATTACH=CONFIG]27270[/ATTACH]
Calling custom install command file.