
Xcopy "Java8u31config.txt" "%ProgramData%\Java8Configuration" /C /Y If exist "%ProgramData%\Java8Configuration" rd /s /q "%ProgramData%\Java8Configuration"

REM Prepare Configuration File and put it somewhere

Wmic product where "name like 'Java 8%%'" call uninstall /nointeractive Wmic product where "name like 'Java(TM) 8%%'" call uninstall /nointeractive Wmic product where "name like 'Java 7%%'" call uninstall /nointeractive Wmic product where "name like 'Java(TM) 7%%'" call uninstall /nointeractive REM Uninstall all previous versions from system Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "chrome.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "chrome.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "chrome.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "iexplorer.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "iexplorer.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "iexplorer.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "iexplore.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "iexplore.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "iexplore.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "firefox.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "firefox.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "firefox.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "jusched.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "jusched.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "jusched.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "javaws.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "javaws.exe"

Taskkill /F /T /FI "STATUS eq RUNNING" /IM "javaws.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "javaw.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "javaw.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "javaw.exe" Taskkill /F /T /FI "STATUS eq UNKNOWN" /IM "java.exe" Taskkill /F /T /FI "STATUS eq NOT RESPONDING" /IM "java.exe" Taskkill /F /T /FI "STATUS eq RUNNING" /IM "java.exe" Made the script that installs everything (install-JRE8.cmd): On the Documentation page Oracle suggested to use Configuration File, so I made it (I named it Java8u31config.txt and I did not mess with INSTALLDIR, since there is a mistakenly mentioned INSTALL_DIR):

While preparing and testing Java 8 JRE installation packages for Microsoft SCCM 2012 R2 mass deployment system I have run into problems.ĭownloaded both Java 8 Windows Offline Installers for 32- and 64-bits: jre-8u31-windows-i586.exe and jre-8u31-windows-圆4.exe. Have asked the submitter to provide install logs to evaluate this issue in-depth. Please note that normal silent install on the system has completed successfully. Received this report from a submitter who claims that Java 8u31 JRE silent install has failed with Microsoft SCCM 2012 R2 mass deployment software with error 1722.
