/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How unistall all old version of java which I listed below in one script, and install the new one.

03/05/2020 338 views
Java 2 Runtime Environment 1.4.0
Java 2 Runtime Environment 6.0.0
Java 2 Runtime Environment 7.0.0
Java Plug-In 6.x
Java Plug-In 7.x
Java Access Bridge for Windows 11.x
Java Access Bridge for Windows 2.x
Java Access Bridge for Windows 7.x
Java Access Bridge for Windows 8.x
Java Plug-In 6.x
Java Plug-In 7.x
Java Plug-In 8.x
Java Runtime 1.4.x
Java Runtime 11.x
Java Runtime 5.x
Java Runtime 6.x
Java Runtime 7.x
Java Runtime 8.x
Java Web Start 1.x
Java Web Start 5.x
Java Web Start 6.x
Java Web Start 7.x
Java Web Start 8.x
thank you in Advance!


0 Comments   [ + ] Show comments

Comments


All Answers

0

You can simply use WMIC in a elevated command line or batch file to remove all programs that match the name Java. The following example used in a batch file or executed through command line would remove all instances of Java from the computer. Example: wmic product where "name like '%Java%'" call uninstall

Answered 03/05/2020 by: ERalee
White Belt

  • for some reason it didn't work for me. I used below script it worked perfectly. but one question, though...during the install it asks whether you want to remove the old version of java from users machine who had it installed before...is there any way to tell it to uninstall other old version that I mentioned above?

    start /wait MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F32180102F0} /qn REMOVEOLDVERSIONS=Yes IN_PROFILENAME=Production-JavaSetup8u231.exe

    start /wait msiexec.exe /i "JavaSetup8u241.exe" /qb!
    start /wait msiexec.exe /i "JavaSetup8u241.exe"

    looking forward to hear back from you all.
    • That I am unsure of. I normally remove big lists of programs like that through the command line interface to avoid all the GUI on screen popups and to streamline the process since almost every installer for windows is different depending upon who made it. Sorry I couldn't help with this one

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ