/build/static/layout/Breadcrumb_cap_w.png

Way to install Java only if its newer than that is on the workstations

Hi, Can someone tell me if there is a way to install a Specific of Java only if its newer than that is on the workstation? For instance I wont want to try to install java 7 update 67 on a workstation that has 69, but I want it to install if It has Version 7 update 56 etc.
ThaNks

1 Comment   [ + ] Show comment
  • you can check the file version of java.exe and proceed accordingly . java exe are placed in window directory and program files . compare them with your package and proceed. - rock_star 9 years ago

Answers (2)

Posted by: rileyz 9 years ago
Red Belt
0
You can approach this in two ways.

1) You can apply a MST to the the Java 7u67 MSI and using conditions - Install if version blah, but of version blah don't etc. Will be a bit fiddly to get the conditions right though, but it will do the job. Also, the installer should not try and downgrade Java - well I hope not, its been ages since i've worked with java (thank god).

2) Using your ESD (SCCM, KACE, Whatever) you can use that to do your detection, and based on the findings action the install. See Rock_Stars comments re: detection.


That would be my preference (option 2) really, I tend to make the ESD do the donkey work, plus the more you use it the better, means you get better at pulling complex reports etc and the IT manager will go "ahh thats why we paid ££$$ for it". 
Looks good for the ROI ;)


Posted by: rockhead44 9 years ago
Red Belt
0
I use a smart label to accomplish this. Then I target this label with a Managed Install. Here's the label I use for Java 7 Update 76 on my desktops. This does not target machines that have a higher version (either Java 7 Update 80 or any Java 8). But it identofies desktops that either have no Java at all or have a version lower than Java 7 Update 76. I also include a label to exclude in here but you'll get the idea.

SELECT MACHINE.NAME AS SYSTEM_NAME, SYSTEM_DESCRIPTION, MACHINE.IP, MACHINE.MAC, MACHINE.ID as TOPIC_ID FROM MACHINE  WHERE (((not exists  (select 1 from LABEL, MACHINE_LABEL_JT where MACHINE.ID = MACHINE_LABEL_JT.MACHINE_ID AND MACHINE_LABEL_JT.LABEL_ID = LABEL.ID  AND LABEL.TYPE <> 'hidden' and LABEL.NAME = 'M-Proctor,RSA,Servers')) ) AND ((not exists  (select 1 from LABEL, MACHINE_LABEL_JT where MACHINE.ID = MACHINE_LABEL_JT.MACHINE_ID AND MACHINE_LABEL_JT.LABEL_ID = LABEL.ID  AND LABEL.TYPE <> 'hidden' and LABEL.NAME = 'M-SBO Servers')) ) AND (CHASSIS_TYPE = 'desktop') AND ((not exists  (select 1 from SOFTWARE, MACHINE_SOFTWARE_JT where MACHINE_SOFTWARE_JT.MACHINE_ID = MACHINE.ID AND SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID and SOFTWARE.DISPLAY_NAME = 'Java 7 Update 76')) ) AND ((not exists  (select 1 from SOFTWARE, MACHINE_SOFTWARE_JT where MACHINE_SOFTWARE_JT.MACHINE_ID = MACHINE.ID AND SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID and SOFTWARE.DISPLAY_NAME like '%Java 7 Update 80%')) ) AND ((not exists  (select 1 from SOFTWARE, MACHINE_SOFTWARE_JT where MACHINE_SOFTWARE_JT.MACHINE_ID = MACHINE.ID AND SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID and SOFTWARE.DISPLAY_NAME like '%Java 8%')) ))  
 
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