Jump to content

Recommended Posts

Posted (edited)

I have a specific time-period in which I need to download and update Java on Windows machines. The machines will then be re-frozen by DeepFreeze.

 

The machines wake up via a BIOS feature at a set time on Sundays, so this will need to be done completely automatically. The Java client (GUI) has a feature to download updates, but it asks before updating. The script will be run by a feature of DeepFreeze, but it must be DOS batch, or at least something started by DOS batch.

 

I need a way of doing this completely automatically, from a command line.

 

can this be done?

Edited by jinnantonnixx
Posted

jre-7u45-windows-i586.exe /s /passive /norestart AUTOUPDATECHECK=0 IEXPLORER=1 JAVAUPDATE=0 JU=0 EULA=0 REBOOT=Suppress

 

should do the trick, it just installs a new version rather than run an update.

  • Thanks 1
Posted

Found this for reference.

https://www.java.com/en/download/help/silent_install.xml

 

 

Command Line Install

The Java SE 7 Windows offline installer command has following syntax:

 

.exe [/s] [iNSTALLDIR=:\] [sTATIC=1] [WEB_JAVA=0/1] [WEB_JAVA_SECURITY_LEVEL=VH/H/M/L]

 

where

 

.exe is the single executable installer for Java

/s, if used, indicates silent installation

INSTALLDIR, if used, specifies the drive and path of the JRE.

If INSTALLDIR is not specified, the installation will go into C:\Program Files\java\jre (default location).

STATIC=1, if used, specifies a static installation. This option is available in the 6u10 release and above. For more information see Static Installation.

WEB_JAVA=0, if used, disables any Java application from running in the browser.

WEB_JAVA=1, the default, enables Java applications in the browser. This field is available as of the 7u10 release. For more information see Setting Security Levels of the Java Client..

WEB_JAVA_SECURITY_LEVEL: if used, sets the security level of unsigned Java apps running in a browser. The possible values for this field are V (very high), H (high), M (medium, the default) or L (low). This field is available as of the 7u10 release.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...