Scripting Question

[SOLVED] Comprehensive List of Java 7.x Installation Switches & MSI Parameters

04/29/2013 62303 views

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...

  • AgreeToLicense
  • REBOOT (likely MSI parameter)
  • JU
  • 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! :)
  • 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:
0 Comments   [ + ] Show comments


Community Chosen Answer


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

All Answers


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"=""
  • "PRODUCTVERSION"="7.0.210"
  • "INSTALLDIR"="C:\\Program Files\\Java\\jre7\\"
  • "PATCHDIR"=""
  • "WEB_JAVA"=""
  • "EULA"="0"
  • "IEXPLORER"="0"
  • "MOZILLA"="0"
  • "JAVAUPDATE"="1"
  • "ImageCkSum"="4172486760"
  • "FullVersion"="1.7.0_21-b11"
Answered 04/29/2013 by: haxin
Orange Senior Belt

  • here is for uninstall strings


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

Answered 04/30/2013 by: GeekSoldier
Red Belt


>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.
This content is currently hidden from public view.
Reason: duplicate response For more information, visit our FAQ's.

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

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