Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How to check IE and Java installed and remove/replace with specific versions.


  • Please log in to reply
6 replies to this topic

#1 sev7en2507

sev7en2507

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:01:20 PM

Posted 28 July 2016 - 07:05 AM

Good afternoon,

I will explain you the score... I have 20 PCs with Windows 7 Enterprise at 32 and 64bit with different version of IE and Java installed.

 

I have to install to all the same version of IE and Java, exactly:

IE 11.0.9600.18376

Java 8.1.01

 

I have the offline installer of both.

 

 

Have can I do that via scripts? 

I guess first I have to check the version installed, then eventually remove it and install the new ones. Where can I look for that?

 

 

Cheers!



BC AdBot (Login to Remove)

 


#2 hamluis

hamluis

    Moderator


  • Moderator
  • 56,562 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:05:20 AM

Posted 28 July 2016 - 07:12 AM

Reference:  http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

Is the above what you are referring to?

 

Louis



#3 JohnC_21

JohnC_21

  • Members
  • 24,846 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:20 AM

Posted 28 July 2016 - 07:44 AM

You can check the version of IE by using the following command at a command prompt. (versions 10 and 11)

reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v svcVersion

There is no command line equivalent for Java. You can find it in a number of ways.

 

https://java.com/en/download/help/version_manual.xml#winstart

 

https://www.java.com/en/download/installed.jsp

 

Running MiniToolBox and checking for installed programs. It creates a log file in txt format.

 

Edit: I was able to find a command that may find your java version.

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment  32bit
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment   64bit

http://stackoverflow.com/questions/1339910/how-can-i-detect-the-installed-sun-oracle-jre-on-windows


Edited by JohnC_21, 28 July 2016 - 07:50 AM.


#4 sev7en2507

sev7en2507
  • Topic Starter

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:01:20 PM

Posted 29 July 2016 - 05:51 AM

Reference:  http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

Is the above what you are referring to?

 

Louis

 

 

You can check the version of IE by using the following command at a command prompt. (versions 10 and 11)

reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v svcVersion

There is no command line equivalent for Java. You can find it in a number of ways.

 

https://java.com/en/download/help/version_manual.xml#winstart

 

https://www.java.com/en/download/installed.jsp

 

Running MiniToolBox and checking for installed programs. It creates a log file in txt format.

 

Edit: I was able to find a command that may find your java version.

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment  32bit
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment   64bit

http://stackoverflow.com/questions/1339910/how-can-i-detect-the-installed-sun-oracle-jre-on-windows

 

Good morning,

thanks for that first tips, after that how can I proceed with the next steps?



#5 JohnC_21

JohnC_21

  • Members
  • 24,846 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:20 AM

Posted 29 July 2016 - 08:44 AM

Do mean create a script? I do not have any experience in scripts. You may want to post on a scripting forum if nobody replies here. 

 

I think you could create a simple .bat file with the following commands but I can't guarantee it will work or is what you require.

 

reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v svcVersion
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment"
pause
end


#6 sev7en2507

sev7en2507
  • Topic Starter

  • Members
  • 23 posts
  • OFFLINE
  •  
  • Local time:01:20 PM

Posted 29 July 2016 - 10:23 PM

Thank you, it is fine now we should get that result and do a comparison with the required ones:
IE 11.0.9600.18376
Java 8.1.01
 
then if different remove that version and install the required one, if egual check the next and close it if both are the same.
 
 
We are close...


Edited by hamluis, 30 July 2016 - 11:11 AM.


#7 JohnC_21

JohnC_21

  • Members
  • 24,846 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:20 AM

Posted 30 July 2016 - 07:50 AM

That is out of my skill level. You may want to check with a forum that specializes in scripting and or Powershell.


Edited by hamluis, 30 July 2016 - 11:12 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users