I previously wrote up my process as an article for installing Java 7 update 51 as a manged software delivery. Figured I’d do another article for java 8 for a spot to crowdsource from the community as I always learn from comments how to improve how I do things in CMS. Don't forget support for Java 7 ends in April!
Download the latest offline .exe installer (you won’t see the 64 bit offline installer unless using 64 bit windows). Note that Oracle recommends 32 bit Java unless for some reason you use 64bit browsers - we use the 32 bit download.
Our deployment.config file contains these 2 lines deployment.system.config.mandatory=true deployment.system.config=file:\\C\:\\Windows\\Sun\\Java\\Deployment\\deployment.properties
Our deployment.properties file is following deployment.expiration.check.enabled=false deployment.security.mixcode=HIDE_RUN deployment.javaws.shortcut.locked deployment.javaws.shortcut=NEVER
You can add more options to the properties file based on what’s available in the current release. See http://docs.oracle.com/javase/8/docs/technotes/guides/deploy/properties.html
The folder on the desktop should now have 3 files, deployment.config, deployment.properties, & .msi file.
Note: As of Java 8u20, there is no more Medium security level support. Any sites that don’t conform to Java’s security practices will be blocked. If you have sites in your organization you want to whitelist, you can do so with a third text file exception.sites. Make sure to set the deployment.user.security.exception.sites value in deployment.properties if you do this. I am not using that as our high profile sites all loaded without it, but you can get more info here
Note: I originally had IEXPLORER and MOZILLA keys in the command line, but they didn’t end up in the registry, so I don’t think they’re supported anymore, so I removed them. Anyone know if any of that is documented anywhere?
xcopy "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{9f283b6e-34b5-4e23-a171-82d3axxxxxxx}\cache\deployment.config" C:\Windows\sun\java\deployment\ /y xcopy "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{9f283b6e-34b5-4e23-a171-82d3axxxxxxx }\cache\deployment.properties" C:\Windows\sun\java\deployment\ /y reg add "HKLM\Software\JavaSoft\Java Update\Test" reg delete "HKLM\Software\JavaSoft\Java Update" /f
This is what my policy looks like
Installing java with the browser opened seems to continue to cause issues. I saw some machines in add/remove programs saying the app was installed, but it didn’t work in the browser and there was no control panel icon. So, I set the policy to only run if no user logged in under schedule – advanced options
I also set the advanced settings for the software install to only run “only when no user is logged on.” This is probably not necessary, but I thought it was a failsafe.
Our users typically leave machines in locked or powered off states, so my plan is to leave these ‘install at logout’ precautions in place for a week or 2 and then eventually set it to run whenever for all users not yet updated and deal with the corrupted installs that happen manually. I’m happy so far in first few days of policy being on about half of users have been updated.
To maintain Java, I have some filters set up.
SELECT sw._ResourceGuid [Guid] FROM [vSoftwareComponent] sc inner join [Inv_InstalledSoftware] sw on sw.[_SoftwareComponentGuid] = sc.[Guid] where sc.[Name] LIKE '%JAVA%' and sw.[InstallFlag]=1