How unistall all old version of java which I listed below in one script, and install the new one.
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 |
|
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
ERalee
4 years ago
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
Comments:
-
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. - anonymous_150373 4 years ago-
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 - ERalee 4 years ago