We want to update the JDK environment on multiple machines, all running windows but different versions (either XP or 7)
For that purpose, I'm now creating a script which will automatically run the correct installer (32/64 bit). I tried running the installer with the following command:
jdk-8u25-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"
This works fine on a machine with no JDK/JRE 8 installed. However, I am running into a few issues:
- If JDK/JRE 8 is already installed, the installer UNINSTALLS both JDK & JRE instead of simply not doing anything (or re-installing)
- If a reboot is required it is forcefully performed automatically, and I need to avoid that as there are other actions I need to perform in the script after the installation completes.
- There is no VERBOSE mode / log file to indicate what the installer is actually doing
I have looked at these sources:
- JDK Installation for Microsoft Windows - Installing the JDK Silently
- Windows JRE Installer Options - Command-Line Installation
but they seem lacking and very confusing as to what will give me the wanted result.