Sun | Netscape Alliance jre

Version: 1
Views: 19823  |  Created: 02/01/2007

Average Rating: 2
jre has 6 inventory records, 2 Questions, 0 Blogs and 0 links. Please help add to this by sharing more!

Deployment Tips (51)

Most Common Setup Type
Not Determined
Average Package Difficulty Rating
Rated 2 / 5 (Somewhat Easy) based on 9 ratings
Most Commonly Reported Deployment Method
Windows Installer with Custom Transform (MST)

Deployment Tip Summary

Add a Summary

127
Command Line

Support for a silent install option by using the /silent flag was added with the release of version 1.0.1


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
127
Note

I've found the new Properties for 1.5 Update 5 and higher to do exactly what we did in prior versions.  This makes it nice and clean for a deployment via AD and GPO without any stuff to bug your users (admin or otherwise).


Tested on J2RE 1.5 Update 6 but the Properties are in Update 5 as well.


Using Orca or similar, create a new transform (mst) for the extracted msi file (instructions in other spots).


Here is the dump from my MST file using WiLstXfm.vbs from the platform sdk.


C:\cscript WiLstXfm.vbs "J2SE Runtime Environment 5.0 Update 6.msi" "J2RE-1.5.0.06.mst"

Property Value          [IEXPLORER] {0}->{1}

Property Value          [JAVAUPDATE] {1}->{0}

Property Value          [AUTOUPDATECHECK] {1}->{0}

Property Value          [JU] {1}->{0}

Property Value          [MOZILLA] {0}->{1}

Property Value          [SYSTRAY] {1}->{0}

Property Value          [WEBSTARTICON] {1}->{0}


A quick break down of what each does in this MST (based on observations):


IEXPLORER=1 (default=0)

  - This selects the IE plugin


JAVAUPDATE=0 (default=1)

  - This turns off part of the JavaUpdate


AUTOUPDATECHECK=0 (default=1)

  - This turns off part


JU=0 (default=1)

  - I'm pretty sure this is the property everyone hated. This is the new property in Update 5 and 6 that turns on that update prompt and leaves JavaUpdate on even if the JAVAUPDATE property is set to 0

  - If were trying to figure out how to get rid of "PromptAutoUpdateCheck" under [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] to avoid the first run prompt, setting JU=0 takes care of this.


MOZILLA=1 (default=0)

  - This selects the Netscape/Mozilla plugin


SYSTRAY=0 (default=1)

  - This turns off the system tray icon when java applets are active


WEBSTARTICON=0 (default=1)

  - This disables the creation of the web start link on the desktop (I think, always had this off)


Here is a dump of the HKLM registry for the main keys covered to show the results of using these properites.


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_06]

"JavaHome"="C:\\Program Files\\Java\\jre1.5.0_06"

"UseJava2IExplorer"=dword:00000001

"HideSystemTrayIcon"=dword:00000001


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000

"EnableAutoUpdateCheck"=dword:00000000

"NotifyDownload"=dword:00000001

"NotifyInstall"=dword:00000001

"Frequency"=dword:01170000

"UpdateSchedule"=dword:00000013

"LastUpdateBeginTime"=""

"LastUpdateFinishTime"=""

"InstallOptions"=""

"UpdateDescription"=""


Dec 2005 - Tested on J2RE 1.5 Update 6


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
125
Command Line

Hi all.

I use this as a "unatended silent super installer". Most of the details are in this page, I just put them together. This works for admin and non-admin users too. Enjoy!!


C:\temp\java\jre-1_5_0_04-windows-i586-p.exe /S /v"IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 AgreeToLicense=1 EULA=1 /QN"


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
125
Command Line

Platform(s):

Windows 98, Windows ME, Windows 2000 (SP4+), Windows XP (SP1 SP2), Windows 2003

JRE version(s):

1.4.2_xx, 1.5.0, 1.4.0_xx, 1.4.1_xx

---


ADDLOCAL is either jrecore[,extra][,other_US] or ALL


IEXPLORER=1 indicates that the JRE should be registered with the Internet Explorer browser


NETSCAPE6=1 indicates that the JRE should be registered with Netscape 6 or later browsers


MOZILLA=1 indicates that the JRE should be registered with Mozilla 1.1 and later browsers


INSTALLDIR specifies the drive and path of the installation


REBOOT=Suppress indicates that if locked files are encountered the computer should not be rebooted


JAVAUPDATE=1 indicates that Java Update feature is enabled


EULA=1 indicates that End User License Agreement will be displayed on first use and not during installation


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
124
Note

*** Create a MST for Sun Java 1.x.

The recipe:

--- Start the downloaded installer, in the directory mentioned below you can find the files needed ---

--- Versions previous to 1.5.0_08:

In the '%TEMP%' directory you'll find a subdirectory with the name '_is48' or something alike...

--- Versions from 1.5.0_08 and up(?):

In the '%UserProfile%\Local Settings\Application Data\Sun\Java\' directory you'll find a subdirectory with the name 'jre1.5.0_0#' or something alike...


1) Make a backup copy of the original J2SE*.msi file as example I use: J2SE_ORCA.msi.

2) To apply your language run the executable MsiTran.exe.

      Note: This file comes with the Microsoft Platform SDK.

MsiTran.exe -a "[PathTo]/[YourLanguage].mst" "[PathTo]/J2SE_ORCA.msi"

3) Open J2SE_ORCA.msi in Orca.

      Note: This file comes with the Microsoft Platform SDK.

      You can change the following propertys:

      * In the Table row (left screen) click on the 'Property' table.

ALLUSERS = (1/0), Default =1.

IEXPLORER = (1/0), Use in MS-Internet Explorer Default =0 (Autodetect in manual installation).

MOZILLA = (1/0), Use in Mozilla Browsers Default =0.

AUTOUPDATECHECK = (1/0), Default =1.

JAVAUPDATE = (1/0), Use JavaUpdate? Default =1.

4) Create the FINAL Transforms file (MST): "SunJava.mst"

MsiTran.exe -g "[PathTo]/J2SE*.msi" "[PathTo]/J2SE_ORCA.msi" "[PathTo]/SunJava.mst"

5) Now you can apply the transform on the command line as follows:

MsiExec.exe /i J2SE*.msi TRANSFORMS="SunJava.mst" /qb!

      Or it can be applied through the modification tab in the Group Policy using Active Directory.

References:

    Overall: http://java.com/en/download/help/index_installing.xml

    v1.4.x: http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/deployment.html

    v1.5.x: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/upgrade-guide/deployment.html


*** Uninstall: Sun Java 1.x.

Add/Remove Software information in the windows (HKEY_LOCAL_MACHINE) registry:

- Java 2 Runtime Environment, SE v1.4.# "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{7148F0A8-6813-11D6-A77B-00B0D0#####0"

* Note: v1.4.# sometimes uses "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{EFCE5837-FC21-11D6-9D24-00010240CE95}" Or likewise... I found this for v1.4.1_02 (there will be more information on Sun's website).

- J2SE Runtime Environment 5.0 Update # "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{7148F0A8-6813-11D6-A77B-00B0D0#####0"

For Silent uninstall use (Replace '/i' with '/x' and add '/qb!' in the registry key):

MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0#####0} /qb!

In which #####0 = the version number to uninstall.

Find out te current version of java by checking: "%ProgramFiles%\Java\jre<version>\bin\client\jvm.dll", remove the dots from the versionnumber.

For examle:

- Java 2 Runtime Environment, SE v1.4.2_10 = 14210

- J2SE Runtime Environment 5.0 Update 6 = 15006


*** Notes ***

    Most propertys discussed can be given in the commandline, like:

MsiExec.exe /i ....msi OPTION=...


    Orca.exe is a FREE database table editor for creating and editing Windows Installer packages and merge modules.

See: http://msdn.microsoft.com/library/en-us/msi/setup/orca_exe.asp

    MsiTran.exe is a FREE tool to generate or apply a transform file.

See: http://msdn.microsoft.com/library/en-us/msi/setup/msitran_exe.asp

MsiTran.exe will be installed in: "C:\Program Files\Microsoft Platform SDK\Bin".

    ORCA and MsiTran Notes:

- ORCA and MsiTran come with the Microsoft Platform SDK.

    See: http://www.microsoft.com/msdownload/platformsdk/sdkupdate / http://msdn.microsoft.com/library/en-us/msi/setup/platform_sdk_components_for_windows_installer_developers.asp

- Orca.msi, MsiTran.exe and others will be installed in: "C:\Program Files\Microsoft Platform SDK\Bin".

- Instead of the the executable MsiTran.exe you could use the new 'Gen.vbs' ~ Create this vbs as described in the Platform SDK help file ~. But, as far as I tried it, it didn't work!


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
121
Note

Previous to the version 2.2 release, J2SE (Java 2 Standard Edition) would not run on Pentium 4 Windows systems. This effected installation of any applications that required such as the Oracle Client.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
121
Note

jre1_5_0-windows-i586.exe does not support, by default, the expansion and direct use of the .msi file.  It can be found however during runtime under %userprofile%\local setting\application data\{3248f0A6-...}.


Apply a /qn and you have the silent deployment option set.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
121
Note

For version 1.5.0 the following instructions extract the MSI and MST from the executable downloaded from Java website.


1) Download the executable


2) run jre-1_5_0_05-windows-i586-p.exe /a


3) During the installation the files are extracted to C:\Temp\_is193 (do not click on Finish until you copy these files out)the files are removed from the drive when you click finish.


4) You now have:

J2SE Runtime Environment 5.0 Update 5.msi and 1033.mst


5) Modify the 1033.mst with your specific settings.


KJ


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
120
Command Line

J2RE 1.4.2 is now a Windows Installer MSI in a self extracting EXE.  If you run the EXE (e.g. j2re-1_4_2-windows-i586.exe) with a /a switch you can specify the location you want to expand the MSI and it's associated files to.  Thanks.  DB.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
120
Note

Here's how I did it with Admin Studio 5.5:



Extract the MSI from the executable:


j2re-1_4_2_04-windows-i586-p.exe /A


It will prompt for a network location to extract to.


Using Tuner, I created a response Transform, then I directly edited the transform to make the following changes:


WEBSTARTICON - set to 0  - removes webstart icon on desktop


SYSTRAY - set to 1  - (which is default) puts coffee cup icon in Systray when applets run


JAVAUPDATE - set to 0  -  I don't want users being prompted to update the JRE I am trying hard to standardize!


IEXPLORER - set to 1 -  Enables JRE for Internet Explorer (only browser I am concerned with)



That's it!


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
120
Note

When you want to change the location of the plugin configuration (jar) files, you can do this by changing it in the control panel on the cache tab or by adding a User Environment Variable "USER_JPI_PROFILE". This sets a directory (e.g. USER_JPI_PROFILE=C:\Temp\JAVA) The cache location will be created under this directory.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Note

This procedure describes how to obtain the Java Runtime Installation .msi file

In this example we will retrieve .msi file for J2SE version 1.4.2_01, but this procedure can be used for any version of J2SE 1.4.2_xx or higher.


The extracted .msi file can be assigned to an Active Directory software distribution policy.


To obtain an .msi file carry out the following steps


Download and launch the SUN J2RE Windows Offline installer.

Retrieve the "Java Runtime Environment, SE v1.4.2_01.msi" file from the LocalAppData folder (User's Application Data folder). The LocalAppData folder will differ for each Windows platform.

Inside this folder you will find a folder named


{7148F0A6-6813-11D6-A77b-00B0D0142010}


The last 6 digits of this CLSID and the name of the .msi file will differ for each release number


Now you can use Active Directory to distribute the .msi file to as many client Windows platforms as you want.

If you want to register the J2RE as the default VM for Internet Explorer, Mozilla and Netscape, you will have to create a transform that will set the variables IEXPLORER, MOZILLA, and NETSCAPE6 to 1 in th e property .idt table


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Note

I donÂ’t see why people rate this as being so difficult


How to deploy Java Runtime Environment (JRE) using Active Directory across a network
http://www.java.com/en/download/help/5000011100.xml


After you have the MSI file you can change the following properties

-AgreeToLicense yes/no (License Agreement)


All have values of 1 for enable/yes or 0 for disable/no

-AUTOUPDATECHECK (Auto Update check during instillation)

-EULA (End user license agreement)

-IEXPLOR (Default virtual machine for Internet Explorer)

-JAVAUPDATE (enable/disable updates)

-MOZILLA (default virtual machine for Mozilla)

-SYSTRAY (Enable/Disable task bar icon)


Oh yeah and v1.5 doesnÂ’t seem to stick any icons on the desktop or start menu


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Note

clewster missed that the MSI property for Iexplorer is:


IEXPLORER (Default virtual machine for Internet Explorer)


Making your cmd line:


msiexec /i java.msi IEXPLORER=1 /qb


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Note

Using Extracted MSI files method

Download the Windows (Offline Installation)
http://java.com/en/download/manual.jsp


Extract MSI files

-clean out the TEMP folder

-Run jre-1_5_0_04-windows-i586-p.exe /a

-When you have the first prompt copy the contents of a folder that contains

J2SE Runtime Environment 5.0 Update 4.msi to staging area.

-Cancel the install from j2re-1_4_2_06-windows-i586-p.exe


Create the MST using the MST template inside WPS. Then do the following:


-Change AgreeToLicense to Yes

-Change IEXPLORER to 1

-Change MOZILLA to 1

-Change WEBSTARTICON to 0 - removes webstart icon on desktop

-Change SYSTRAY to 1 - (which is default) puts coffee cup icon in Systray when applets run

-Change JAVAUPDATE to 0 - stops users being prompted to update the JRE


Test installation with this:
http://java.com/en/download/installed.jsp


Sept2005


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Command Line

This performs an automated installation where the uncompress action is not displayed, but the installation process is displayed without the ability to cancel. BTW, the Mozilla parameter does not seem to work for me. Enjoy!


jre150_05.exe /S /V"/qb! IEXPLORER=1 MOZILLA=1 REBOOT=Suppress WEBSTARTICON=0 JAVAUPDATE=0 SYSTRAY=0"


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
119
Note

Here's a script that does the install, then hides the system tray icon and disables autoupdate:


' Script to install the J2SE Runtime Environment version 5.0 Update 11.

' Sets the preferences after installation to hide the systray icon when Java

' is running, and disables autoupdates.  Does not uninstall earlier versions

' of the JRE.


Option Explicit


dim objReg, objWshShell

dim strComputer, strKeyPath1, strKeyPath2, strValueName1, strValueName2

dim dblDWordZero, dblDWordOne


const HKEY_LOCAL_MACHINE = &H80000002


' set the key variables

strKeyPath1 = "SOFTWARE\JavaSoft\Java Update\Policy"

strKeyPath2 = "SOFTWARE\JavaSoft\Java Plug-in\1.5.0_11"


' set the value name variables

strValueName1 = "EnableJavaUpdate"

strValueName2 = "HideSystemTrayIcon"



' set the value variables

dblDWordZero = 00000000

dblDWordOne = 00000001

strComputer = "."


Set objWshShell = WScript.CreateObject("WScript.Shell")

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_

strComputer & "\root\default:StdRegProv")


objWshShell.Run "jre-1_5_0_11-windows-i586-p-s.exe /s /v""/qn IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress JAVAUPDATE=0""", 1, True


' Set the values

objReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName1,dblDWordZero

objReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath2,strValueName2,dblDWordOne

WScript.Quit


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
118
Command Line

Uninstall Java 1.2x

"C:\WINNT\IsUninst.EXE" -f"C:\Program Files\JavaSoft\JRE\1.2\Uninst.isu" -a -y -s

Uninstall Java 1.3x

"C:\WINNT\IsUninst.EXE" -F"C:\Program Files\JavaSoft\JRE\1.3.1_02\Uninst.ISU" -a -y -s


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
118
Command Line

To silently uninstall Java 1.3.1_06:

"C:\Program Files\Common Files\InstallShield\Driver\8\Intel 32\IDriver.exe" /M{D2BFDD8E-D276-11D6-88AF-0050DA21757E} /uninst


The /M argument is case sensitive

http://support.installshield.com/kb/view.asp?pcode=ALL&articleid=Q106685


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
118
Command Line

I use this line to install JRE 5.0 Update 9: "jre-1_5_0_09.exe /qb IEXPLORER=1 REBOOT=Suppress WEBSTARTICON=0 JAVAUPDATE=0 SYSTRAY=0"


Works great when using RIS or SMS. Just change qb to qn if you want totally silent installation.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
118
Note

I used the following for Java 6 update 5:


To fully disable auto-updating just use the msi install switch : 'AUTOUPDATECHECK=0'.


When using 'AUTOUPDATECHECK=0', then the java update schedular isn't placed into the Run reg key anymore and hence, auto-updating is fully disabled.


However, there's a bug in the control-panel, so that it still looks like auto-updating is enabled, but it is in fact absolutely disabled...


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

If u want to remove the shortcut from your start menu.

Go to Editor and Custom Action remove the wrapped DLL's CreateJavaWSStartMenuIcon and CreateJavaWSDesktopIcon.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

"You already have this version of the JRE installed.  Please uninstall the product through your add/remove programs utility before reinstalling."


To workaround the above message when trying to uninstall from the MSI, remove/transform out the LaunchCondition: (Not Installed) OR (DATABASE=OriginalDatabase).


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

I found that in our domain, setting the EULA to 1 would not allow java to run on Firefox, or on IE once we updated to IE7.  Strangely it would work with IE6.  When EULA was set to 1 using filemon, I discovered java would look for EULA.dll, which was not there.  When I set EULA to 0 and re-installed java on the domain PC's applets would load in Firefox and IE7. 


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

In JRE 1.5.0 update 10 I also experienced the same issues with EULA as superpenut mentions. If you set EULA=1 you will get gray boxes where java is usually running. This happens in both IE6 and IE7. The remedy is to leave EULA=0


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

1.5.0_11:  This isn't a real MSI, but a drop and run.


The auto update will not turn off no matter what properties you set (at least, I've tried a bunch of combinations).


You also can't add the necessary reg keys to disable the auto update in a transform becasue the custom action that runs the setup.exe overwrites those changes.


I created a VBS custom action set to run deferred after the Java installation custom actions.  This VBS sets the reg key necessary to disable the auto update.

----------------

const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set oReg=GetObject( _

    "winmgmts:{impersonationLevel=impersonate}!\\" &_

    strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\JavaSoft\Java Update\Policy"

strValueName = "EnableJavaUpdate"

oReg.SetDWORDValue _

    HKEY_LOCAL_MACHINE,strKeyPath,strValueName,00000000

-----------------


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

Installing via GPO and merging a .reg using a startup script I have disabled the auto update without having to resort to VBS. By running the script in Computer Configuration>Windows Settings>Scripts (Startup/Shutdown) it is applied after the package is installed so overwrites the registry settings applied by the installer.


Setting the EnableJavaUpdate value to 0 prevents access to the Update tab of the Java control panel applet (even for Admins).


My reg script consists of:


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

If you make a transform, you can add your own custom action in the "Execute Deferred" section.  Place it just before "Install Finalize".  Have the custom action execute the VB script posted above by Turbokitty.  Since that will be the very last thing the MSI executes the reg key will stick and auto-update will be disabled.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

I made direct edits to the extracted MSI for the property settings then added a nested install after the "Finalize Install" within the package to write the key:


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
117
Note

JAVAUPDATE=0 no longer works (from 1.5.0_04 and upwords?)


Workaround; update the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
116
Note

I do not use a Tuner in this case. I simply :

1. suppress all dialogs

2. Set a Property for IEXPLORER to 0

3. Set a Property for AgreeToLicense to Yes

4.Added my own deployment.properties (after the commandline is ran for localdata.pack in Execute Deferred) to windows\sun\java\deployment to provide the initial config for all users. This takes care of diabling javaUpdate, setting proxy, wether or not or when a Web Start Icon is created, disable Java in the Systray, etc....

5. Recompile. Use the vendors install without and commandlines.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
116
Note

I think djseppie may be wrong, I got this to work after a little bit of help on the forum...

http://www.appdeploy.com/messageboards/tm.asp?m=33488


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
17
Command Line

The jre-6u20-windows-i586-s.exe installer now supports msiexec switches natively but doesn't support turning off automatic updates.


I tried JAVAUPDATE=0 AUTOUPDATECHECK=0 JU=0; all were recognised in the msiexec logfile but the jusched was still in winlogon.


I found that the installer spawns two msi's, one of which is au.msi (%APPDATA%\Sun\Java\AU). Script:


msiexec /x {ProductCode of au.msi} /q


after the install to remove the auto updater.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
9
Note

Here's how to make NON-autoupdating, NON-tray-icon-showing version of JRE 1.6.0_14, using only Orca on the MSI extracted from official .exe installer.



Create "fixautoupdate.vbs" file with following contents:


Dim oShell

Set oShell = CreateObject("WScript.Shell")

If Not oShell Is Nothing Then

    oShell.RegWrite "HKLM\SOFTWARE\JavaSoft\Java Update\Policy\EnableJavaUpdate", "0", "REG_DWORD"

    oShell.RegWrite "HKLM\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_14\HideSystemTrayIcon", "1", "REG_DWORD"

    Set oShell = Nothing

End If



In "Binary" table, create new row:


    Name: FixAutoUpdate

    Data: load fixautoupdate.vbs here



In "Custom Actions" table, create new row:


    Action=RunFixAutoUpdate

    Type=1030

    Source=FixAutoUpdate

    Target=(leave blank!)


(1030 is for "deferred" + "run vbs from binary table")



In "InstallExecuteSequence" table, create a new row with "Sequence" placing it right BEFORE InstallFinalize action:


Action=RunFixAutoUpdate

Condition=NOT Installed

Sequence=(put InstallFinalize's "Sequence" field value minus 1 in here, so that our action runs as the last deferred action, after everything else's been finished)



Save it, and - voila! (you can of course put all these changes in transform file if you want to)


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
5
Note

Java_1.4.2_Update12


Java1.4.2 has known problem with configuring proxy on multiple java versions. Proxy settings are stored in Application Data\Sun\Java\Deployment\deployment. properties. This file already exists for previous version and it is against the best practice to replace this file as it already contains settings for previous version.  So one custom "Proxy_Settings" is used to append "deployment. Properties".


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
5
Note

JAVA_1.4.2_UPDATE12


It is strictly recommended not repair this application as this application has special behaviour after repair size of application gets reduced and java control panel get corrupted. All files under INSTALLDIR get deleted.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
5
Note

JAVA_1.4.2_UPDATE12


Auto updates are disabled by using custom actions “Post_Config” , this custom action will create Registry key “\EnableAutoUpdateCheck” under HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy. This registry will disable auto_updates.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
4
Note

I recently made a package for 1.6.0_12 and it worked well using many of the comments on here.  One thing to add that we had issues with.


After the install we had issues in Oracle Applications with forms and windows moving extremely slow (i.e. you move the window "outline" and it takes about 30 seconds for the window to actually move).  As a fix for this we had to add a entry into the Java Runtime Parameters in the Java Control Panel on the Java Tab and in Applet Runtime Settings for 1.6.0_12. 


The parameter was "-Dsun.java2d.d3d=false".  The only way that I was able to automate this was to copy down the deployment.properties file with the install with an entry for "deployment.javaws.jre.0.args=-Dsun.java2d.d3d\=false".


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
4
Note

Proxy settings:


Proxy settings will be performed by using this VB script:


On Error Resume Next

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objShell = CreateObject("WScript.Shell")


strPath = objShell.ExpandEnvironmentStrings("%APPDATA%") & "\Sun\Java\Deployment\deployment.properties" 'Complete Path & File Name


strFldr = objShell.ExpandEnvironmentStrings("%TEMP%") & "\temp_deployment.properties" 'Complete Path & File Name of Temporary File

blnFlag = False

Set file1 = objFSO.OpenTextFile(strPath)

Set file2 = objFSO.CreateTextFile(strFldr)


Do While Not file1.AtEndofStream

  strLine = file1.ReadLine

  If InStr(strLine,"deployment.javaws.proxy.setting") Then 'When this text is found, it is overwritten with the line below.

blnFlag = True

      file2.WriteLine "deployment.javaws.proxy.setting=NONE"

  Else

      file2.WriteLine strLine  'This just copies whatever was read in file1

  End If

Loop

if blnFlag = False Then

      file2.WriteLine "deployment.javaws.proxy.setting=NONE"

End IF


file1.close

Set file1 = nothing

file2.close

Set file2 = nothing


objFSO.DeleteFile strPath, True 'This deletes the original file


objFSO.MoveFile strFldr, strPath 'This moves and renames the temp file, replacing the original


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
3
Note

I ran the installer on a test machine and then looked in %appdata% to find the msi installer files. There are two folders, one named "AU" and the other named "jre1.6.0_29".


Ignore the AU folder. Zip the contents of the second folder *but exclude the MST file* - you don't need it, I believe it is only used to offer 3rd party junk like Ask Toolbar. Upload your zip file to your Kbox and run msiexec.exe /qn /i jre1.6.0_29.msi . You'll have a Java install with no Update tab in it and no Java update scheduler running.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
2
Note

@echo off

@echo Installing Java 6u21

@jre-6u21-windows-i586.exe /s ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0

@echo done!


the above batch file installs it fine for us but the JAVAUPDATE=0 property doesn't seem to work, users are still prompted for an update. To solve this I used group policy preferences to add the following registry entry.


HKLM\SOFTWARE\JavaSoft\Java Update\Policy "EnableJavaUpdate"=00000000 (REG_DWORD)


This seems to work fine for me


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
2
Note

1) Start 6:27-jre-windows-i586.exe ( this is jre6 update 27)

2) Go to% appdata% (C: \ Documents and Settings \ xxxxxx \ Application Data \ Sun \ Java)


There are two folders: 1) AU and 2) jre1.6.0_27


In folder jre1.6.0_27 there is : MSI and CAB files

In folder AU there is AU.MSI and AU.CAB, this is the Auto Update MSI.


Create a MST with AutoUpdate turned off:

Import or create a REG file:


Windows Registry Editor Version 5.00


  [HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java Update \ Policy]

  "Country" = "EN"

  "PostStatusUrl" = "https://sjremetrics.java.com/b/ss//6"

  "Enable Java Update" = dword: 00000000

  "NotifyDownload" = dword: 00000000

  "Schedule Update" = dword: 00000000

  "Frequency" = dword: 00000000

  "UpdateMin" = dword: 0000001e

  "ScheduleId" = "S-1-5"

  "Enable auto update check" = dword: 00000000

  "NotifyInstall" = dword: 00000000


  If the JRE installed with the EXE, remove the AU by:

  msiexec / x {4A03706F-666A-4037-7777-5F2748764D10}


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
1
Command Line

CLI for the exe Java 7u10+

<jre>.exe [/s] [INSTALLDIR=<drive>:\<JRE_install_path>] [STATIC=1] [WEB_JAVA=0/1] [WEB_JAVA_SECURITY_LEVEL=VH/H/M/L]


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
1
Command Line

msiexec /i jre1.6.0_16.msi  /passive /norestart /qb ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Suppress


Supress

msiexec /x jre1.6.0_16.msi  /quiet /norestart


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
1
Note

Silent Installation

JDK Documentation


This section discusses silent installation of the Java Runtime Environment (JRE) on Windows 32-bit platform. It is intended for:


        * System Administrators deploying Java Plug-in and the JRE on multiple PCs in Intranet without user interaction

        * Companies having products requiring the JRE. The JRE can be silently installed with their product.


The Silent Installation section has the following topics:


        * Introduction

        * Installation in Silent Mode

        * Uninstallation in Silent Mode

        * Creating a Log File


Introduction


Java TM SE Runtime Environment (JRE) installations are built using Microsoft Window Installer (MSI) 2.0 technology. MSI contains built-in support for silent or unattended installations. This document tells how to silently install the JRE using the .exe that launches the MSI installation.

Installation in Silent Mode


In Java SE 6 The Windows offline installation command has the same syntax as the Windows Installation. The command is as follows:


<jre>.exe  [/lang=<language ID>] /s [ADDLOCAL=jrecore[,extra][,other_US] | ALL]

                        [IEXPLORER=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>]

                        [REBOOT=Suppress] [STATIC=1]


where


        * <jre>.exe is the single executable installer for the Java Runtime Environment (JRE)

        * /lang=<language ID>, if used, sets the localized language for the installer. For a complete list, please see Language IDs.

        * ADDLOCAL, if used, is either jrecore[,extra][,other_US] or ALL

        * IEXPLORER=1, if used, indicates that the Plug-in should be registered with the Internet Explorer browser

        * MOZILLA=1 indicates that the Plug-in should be registered with Mozilla 1.1 and later and Netscape browsers

        * INSTALLDIR, if used, specifies the drive and path of the installation

        * REBOOT=Suppress, if used, indicates that if locked files are encountered the computer should not be rebooted

        * If ADDLOCAL=ALL is used, then all the features will be installed.

        * If ADDLOCAL=jrecore[,extra][,other_US]can specify the following options:

                    o jrecore indicates the core of the JRE is installed

                    o extra (optional) indicates additional Fonts, Colors, and Soundbank is installed

                    o other (optional) indicates locale-specific .jar files will be installed.

        * If ADDLOCAL is not used, then only the following configuration is installed:

                    o jrecore will be installed

                    o extra will not be installed

                    o other will be installed only if localization support, other than English, is installed.

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

        * STATIC=1, if used, specifies a static installation. This option is available in the 6u10 release and above.


Note


        * The command is case sensitive and there must be no spaces in the features listed with ADDLOCAL.

        * The following options have been deprecated starting in release Java SE 6 update 10:

                    o IEXPLORE

                    o MOZILLA

            Beginning in Java SE 6 update 10 release, the latest JRE software will be registered with all browsers. This ensures that applets will run on the latest and most secure version of the JRE software. See JRE Installation Instructions for Java SE 6 update 10 release for more information about supported options.


Installation Configurations

Example 1


Suppose the JRE installer is jre-6-rc-windows-i586.exe and you want to install the following configuration:


        * Perform a Windows Installation

        * Install the JRE core, additional fonts, colors, and Soundbank

        * Register the Plug-in with Netscape 7 and Mozilla 1.3


The command to install the above mentioned configuration is as follows:


        jre-6-rc-windows-i586.exe /s ADDLOCAL=jrecore,extra MOZILLA=1


Example 2


Suppose the JRE installer is jre-6-rc-windows-i586.exe and you want to install the following configuration:


        * Perform a Windows Offline Installation and install the JRE on D drive at java\jre

        * Have all features of the JRE installed

        * Register the Plug-in with Internet Explorer


The command to install the above mentioned configuration is as follows:


        jre-6-rc-windows-i586.exe /s ADDLOCAL=ALL IEXPLORER=1 INSTALLDIR=D:\java\jre


Note


To keep the MS-DOS window open, until the installation of JRE is complete use the start /w command as follows:


start /w jre-6-rc-windows-i586.exe /s ADDLOCAL=jrecore,extra MOZILLA=1

Uninstallation in Silent Mode


This is the command line for uninstalling in silent mode for Implementation-Version n 1.n 2.n 3_n 4n 5 :


        msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0n 1n 2n 3n 4n 50}


Notes


      1. This command can be run from anywhere.

      2. The msiexec.exe executable is located in the windows system directory.

      3. The REBOOT=Suppress option, mentioned above under installation, may also be used with the uninstall command.

      4. For more information on version formats, see Appendix 2: Sun-Supported Specification-Version and Implementation-Version Formats .


Example for version 1.6.0


        msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}


Example for version 1.6.0_02


        msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}


Creating a Log File


Log file can be used to verify if a installation or uninstallation succeeded. To create a log file describing the installation or uninstallation append /L C:\<path>setup.log to the install or uninstall command and scroll to the end of the log file to verify.

Installation Example


The following is an example for installation:


        jre-6-rc-windows-i586.exe /s /L C:\<path>setup.log


The above command causes the log to be written to the setup.log file.

Uninstallation Example


The following is an example for uninstalling:


        msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000} /L C:\<path>setup.log


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
0
Note

Java JRE x64

jre-6u27-windows-x64.exe /s /v"/qn[IEXPLORER=1][REBOOT=Suppress][JAVAUPDATE=1][EULA=1]"

Java JRE x32

Extract .exe content, copy files, run; msiexec /i jre1.6.0_27.msi /q

 


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
0
Note

in case of installing JRE 1.7 update 13:

Sometimes it is needed that the browsers (and java applications) are closed before installingthe new update.

Also when using 64bit browser and 32bit browser you should install java 64 bit and also java 32 bit to make sure it works in both version of browsers.

To check if you have the latest java, you can go to java.com and click "do I have java?"


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
0
Note

Powershell script to update the proxysettings for Windows 7 computers:


$javapath = "$env:userprofile\appdata\locallow\Sun\Java\Deployment\deployment.properties"

$javafile = Get-Content $javapath

$javastring = $javafile | Select-String -pattern "deployment.proxy.type="

if ($javastring -eq $null)

{

add-content -path $javapath -value "deployment.proxy.type=0"

write-host "Added java setting"

}

elseif ($javastring -match "deployment.proxy.type=0")

{

write-host "OK!"

}

else

{

$javafile | foreach-object {$_ -replace $javastring, "deployment.proxy.type=0"} | set-content $javapath

write-host "Updated java setting"

}


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
0
Note

As the Java Auto Updater feature of Java gets installed as an msi file


Another method of removing it after the software has been installed is by running Microsoft's Windows Installer Cleanup utility


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
-3
Note

This is for Java 1.6.0_07. Will probably work for other versions also.


After about an hour of testing, I have found a really REALLY easy way to configure Java.


All of the public properties will work this way.


Set:

[HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000

"EnableAutoUpdateCheck"=dword:00000000


[HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in\1.6.0_07]

"UseJava2IExplorer"=dword:00000000

"HideSystemTrayIcon"=dword:00000001

"JavaHome"="C:\\Program Files\\Java\\jre1.6.0_07"


Now simply goto your install execute sequence and move "WriteRegistryValues" so it sits after the "InstallJava" custom action.



The reason why people have hit brick walls with registry mods and have had to resort to vbscripts, is because the custom action "InstallJava" overwrites your reg settings.  This method allow Java to install correctly, and also allows your registry settings to still apply in a simple and clean way.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment
-25
Command Line

I used "setup.exe -r" to record a setup.iss file with j2re 1.4.1_01. You can than use "setup -s setup.iss" for a silent install.


Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Please log in to comment

Inventory Records (6)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

jre

Version

1.5.0_15-fcs

Contact

Java Software <jre-comments@java.sun.com>

Comments

Java(TM) 2 Platform Standard Edition Runtime Environment

Questions & Answers (2)

Questions & Answers related to Sun | Netscape Alliance jre

Blogs (0)

Blog posts related to Sun | Netscape Alliance jre