I am trying to install Java in silent mode from a batch file with the command
jre-8u60-windows-i586 INSTALLCFG=jresilent.properties
The properties file is in the same folder like the JRE installer.
Whatever I do, I get the error
---------------------------
Java Installation Not Completed
---------------------------
Unable to install Java
There are errors in the following switches:
"INSTALLCFG=jresilent.properties";.
Check that the commands are valid and try again.
---------------------------
OK
---------------------------
I have tried:
- renaming the file to end with
.properties(was.cfgbefore) - use different line endings (Linux / Windows)
- minimize the number of options in the config file to just
REBOOT=Disable - run as administrator
- explicitly
cd /dinto the directory of the installer
