I'm trying to locate some sort of documentation that includes a comprehensive list of Java installation/uninstallation switches and MSI parameters valid for Java 7.x  I've kept a running list of all the options I've run across over the years...

  • STATIC
  • WEB_JAVA
  • AgreeToLicense
  • WEB_JAVA_SECURITY_LEVEL
  • ADDLOCAL
  • IEXPLORER
  • MOZILLA
  • REBOOT (likely MSI parameter)
  • WEBSTARTICON
  • JAVAUPDATE
  • JU
  • AUTOUPDATECHECK
  • SYSTRAY
  • EULA
  • /s (silent)
  • /L (log)
  • etc.

And not only would I like some validation that its correct, but also to know:

  • what is still valid for Java 7.x
  • what does each switch do; what does it correspond to in deployment.properties
  • what MSI parameters can be passed in addition to or in place of a switch (e.g.: if I'm using /l*vx do I need /L?)
Today, the Oracle website only shows a handful of switches "[/s] [INSTALLDIR=<drive>:\<JRE_install_path>] [STATIC=1] [WEB_JAVA=0/1] [WEB_JAVA_SECURITY_LEVEL=VH/H/M]" and there's no mention of any of those other switches which makes me wonder.
 
My current installation string is crazy long and if I'm using duplicate switches (like autoupdatecheck, javaupdate, ju) or switches are no longer necessary (maybe because its autodetected during installation etc), I'd like to clean it up!
 
Many thanks all - constructive criticism always appreciated! :)
 
 
 
References:
  • JDK 7 and JRE 7 Installation Guide - http://docs.oracle.com/javase/7/docs/webnotes/install/index.html#windows
  • JRE Installer Options - http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jre-installer-options.html
  • How do I arrange a silent (Unattended) Java installation? - http://java.com/en/download/help/silent_install.xml
Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3

You have about covered it all.  The other switches are mentioned in http://wpkg.org/Java and when they were deprecated. You will have to comb thru it but it gives the history of the switches

 

Answered 04/29/2013 by: SMal.tmcc
Red Belt

Please log in to comment

Answers

2

Thanks for the prompt response!  That site is incredibly useful - thank you for that.

I also just discovered something interesting:
In "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\Version\MSI" are a whole list of, what appear to be, MSI Parameters:

  • "JU"="1"
  • "OEMUPDATE"=""
  • "MODE"="C"
  • "JQS"=""
  • "FROMVERSION"="NA"
  • "FROMVERSIONFULL"=""
  • "PRODUCTVERSION"="7.0.210"
  • "INSTALLDIR"="C:\\Program Files\\Java\\jre7\\"
  • "PATCHDIR"=""
  • "WEB_JAVA_SECURITY_LEVEL"=""
  • "WEB_JAVA"=""
  • "EULA"="0"
  • "IEXPLORER"="0"
  • "MOZILLA"="0"
  • "JAVAUPDATE"="1"
  • "AUTOUPDATECHECK"="1"
  • "AUTOUPDATEDELAY"=""
  • "ImageCkSum"="4172486760"
  • "FullVersion"="1.7.0_21-b11"
 
Answered 04/29/2013 by: haxin
Orange Senior Belt

  • here is for uninstall strings
    http://www.itninja.com/blog/view/how-to-create-your-own-uninstall-strings-for-all-versions-of-java-6-and-7
Please log in to comment
2

http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jre-installer-options.html#running

This link is the official and current documentation for CLI options concerning Java.

Answered 04/30/2013 by: GeekSoldier
Red Belt

Please log in to comment
1

>My current installation string is crazy long
Build a transform and use it with the extracted MSI.

Answered 04/30/2013 by: VBScab
Red Belt

  • The install string isn't a bother for me because within major versions I usually only have to edit the version portion of the MSI name and the same string will continue to work (most of the time). When I do edit it's usually pretty minor.
    • Thanks you two. I'm not bothered that its crazy long - its fine and allows those that come behind me to quickly/easily see how we're executing the installation.
Please log in to comment
This content is currently hidden from public view.
Reason: duplicate response
For more information, visit our FAQ's.

0

1. Open the MSI with ORCA.exe from the Microsoft SDK.

2. Choose "Property"-Table on the left

3. Set your Properties! ;)

Answered 11/25/2013 by: pippo91
White Belt

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