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 Save in a local directory C:\Install Create a Install Options File Run 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=Enable AUTO_UPDATE=Enable REBOOT=Disable SPONSORS=Disable REMOVEOUTOFDATEJRES=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. --------------------------------------------------------------------------