Skip to content

Java via SCUP/WSUS

Featured Replies

That used to be possible:

http://www.techygeekshome.co.uk/2013/04/java-client-updates-deployment-using.html

Then with edited msi:

http://www.klaus-hartnegg.de/gpo/msi_java8.html

but now with Java 8 Upd 60 I could not get it working (edited msi give 2705 error)

msi can be extracted or downloaded from http://java.techygeekshomeSPAM!/instructions

 

What are people using for java updates?

 

Thanks

 

Seb

 

 

What are people using for java updates?

 

cmd script to install 8u60 from an unmodified msi, then look for older versions and uninstall them. It works, but... bleh. :\

  • Author

That script being what? Unmodified 8u60 msi just chokes & insist on running from exe

 

Seb

jre1.8.0_60.msi

SHA256 = 8371F27009A9286CAC0D9812E0411DDBFCB106456E46FFEC50E64054E75E4632

 

 

I think I grabbed it from %temp% while running the .exe.

msiexec /i "%~dp0jre1.8.0_60.msi" JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q
call "%~dp0removeOld8.cmd"

and the removeOld8 script (modified July 2016 - they changed the MSI code when they rolled to update 101 and needed to accomodate for that) is:

REM  --------------
REM  Java 8

if exist "%temp%\remove32java8.txt" del "%temp%\remove32java8.txt"
if exist "%temp%\remove64java8.txt" del "%temp%\remove64java8.txt"

REM  Find installs of Java 8, 32-bit and dump MSI codes to file

for /f "tokens=7 delims=\" %%i in ('reg query hklm\software\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F83218"') do echo %%i >>"%temp%\remove32java8.txt"
for /f "tokens=8 delims=\" %%i in ('reg query hklm\software\Wow6432Node\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F83218"') do echo %%i >>"%temp%\remove32java8.txt"
for /f "tokens=7 delims=\" %%i in ('reg query hklm\software\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F3218"') do echo %%i >>"%temp%\remove32java8.txt"
for /f "tokens=8 delims=\" %%i in ('reg query hklm\software\Wow6432Node\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F3218"') do echo %%i >>"%temp%\remove32java8.txt"


REM  Find installs of Java 8, 64-bit and dump MSI codes to file

for /f "tokens=7 delims=\" %%i in ('reg query hklm\software\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F86418"') do echo %%i >>"%temp%\remove64java8.txt"
for /f "tokens=7 delims=\" %%i in ('reg query hklm\software\microsoft\windows\currentversion\uninstall ^| find /i "26A24AE4-039D-4CA4-87B4-2F6418"') do echo %%i >>"%temp%\remove64java8.txt"


REM  Reverse-sort those files of MSI codes, so the newest version is at the top
sort /+33 /r "%temp%\remove32java8.txt" /o "%temp%\remove32java8.txt"
sort /+33 /r "%temp%\remove64java8.txt" /o "%temp%\remove64java8.txt"


REM  Loop through those files, skipping the first line and uninstalling other versions
for /f "skip=1" %%i in (%temp%\remove32java8.txt) do msiexec /x%%i /q /noreboot REBOOT=REALLYSUPPRESS
for /f "skip=1" %%i in (%temp%\remove64java8.txt) do msiexec /x%%i /q /noreboot REBOOT=REALLYSUPPRESS

if exist "%temp%\remove32java8.txt" del "%temp%\remove32java8.txt"
if exist "%temp%\remove64java8.txt" del "%temp%\remove64java8.txt"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.