32Bit Java Batch File (EXE) Non UAC
Java 8 – i586 Batch File (32-bit)
@ECHO OFF
:: remove current java JRE
START /WAIT /MIN WMIC product where "Name LIKE '%%Java%%6%%Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE '%%Java%%7%%Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE '%%Java%%8%%Update%%'" call uninstall /nointeractive
:: install 32bit JRE8-upd141
@ECHO OFF
mkdir c:\tmps
xcopy /Y \\192.168.200.46\apps\java\jre-8u141-windows-i586.exe c:\tmps
c:\tmps\jre-8u141-windows-i586.exe /s
rd c:\tmps /S /Q
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::set auto update off
reg QUERY "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy"
if %ERRORLEVEL% EQU 0 (
reg ADD "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" ^
/v "EnableJavaUpdate" /t REG_DWORD /d 0 /f
)
exit