/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How would I create a script to install Java updates

05/17/2016 1639 views
Hi.

I am looking at writing a script to get kace to push out Java updates. I know that it most likely won't do it every time there is an update to Java, I just need to get all of my users on the same version of Java.
0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

2
tons of good info on this site. 2 Links to start with

http://www.itninja.com/question/managed-install-java-8-update-40

http://www.itninja.com/question/silent-uninstall-java-all-versions

Here's a quick acript to start with once you extract the .msi

================================================

@echo off

taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe

WMIC product where "Name LIKE '%%java%%'" call uninstall /nointeractive

taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe

msiexec /i jre1.8.0_92.msi INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 WEB_JAVA=1 WEB_ANALYTICS=0 EULA=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0 /qn


exit

=================================


Answered 05/17/2016 by: rockhead44
Red Belt

All Answers

0
Remember that you should also take care of the brain-dead "out-of-date" warning that JREs now display. The procedure for doing that is also documented here at ITN. Search for 'deployment.properties'.
Answered 05/18/2016 by: VBScab
Red Belt

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