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

Comments

  • 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.
Please log in to comment

Answers

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 ;)


Answered 04/24/2015 by: rileyz
Red Belt

Please log in to comment
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%')) ))  
Answered 04/24/2015 by: rockhead44
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity