Jump to content


spgsitsupport

Java via SCUP/WSUS

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites

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"

  • Like 1

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.