I want to install Oracle JRE 1.8.202 x64 without making any changes to the current default java on target machines.
Detail on what I mean by 'Default Java'. I mean I don't want the installer to change of any of the settings that any current or old Java installer may have made to make itself the default (e.g. path changes, java executables dumped in windows
or system32
directories, java.exe
added or updated to C:\ProgramData\Oracle\Java\javapath\java.exe
, environment variables like JAVA.HOME
, Java executables added to registry apppaths).
The target machines are a mix of Windows machines that will have a huge variety of current Java installations. Some apps in the target environment rely on using the default java to run - I'd rather they didn't, but that's out of my control.
I can't see any options to stop the installer (jre-8u202-windows-x64.exe) setting it's JRE to the default. See the installer switches at Oracle JavaSE 8 Docs.
Anyone know of any methods other then just copying the files into a target directory?
Snapshotting the current default then restoring it is not an option - Oracle have changed 'setting the default' technique over time, so restoring cleanly would be a fragile rabbit hole.