Showing posts from October, 2016

PowerShell: Download and Install Java 8 JRE

This script I wrote for our automation system that will:
Download the latest Java 8 JRE from Java.comSave in a local directory C:\InstallCreate a Install Options FileRun the installer silently with the necessary Installer Options The Installer Options file determines what configuration is used the install of Java.

For example, in the script I have configured. This will perform a silent install, auto updates enabled, no reboot after the installation, Sponsors/ads install disabled and will uninstall any older existing installations of Java JRE.

INSTALL_SILENT=EnableAUTO_UPDATE=EnableREBOOT=DisableSPONSORS=DisableREMOVEOUTOFDATEJRES=Enable You can find these and other options to use from the Java website:

This has been tested to work on PowerShell v2 and higher.

-------------------------------------------------------------------------- Deploy Java JRE Software …