Oracle Java 6 (Any Update Level)

Views: 7k  |  Created: 10/12/2009

Average Rating: 0
Java 6 (Any Update Level) has 1 inventory records, 11 Questions, 3 Blogs and 1 links. Please help add to this by sharing more!

Deployment Tips (15)

Most Common Setup Type
Legacy Setup with no known command line support
Average Package Difficulty Rating
Rated 3 / 5 (Average) based on 2 ratings
Most Commonly Reported Deployment Method
Windows Installer with Custom Transform (MST)
or cancel
23
Command Line
Example:
jre-6uXX-windows-i586-s.exe /s AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0

That installed the environment for Mozilla or IE, supresses the reboot, Supresses EULA, and disables updates.


I've found that the update software from previous versions may still be active so I also remove the registry entries and delete the updater program:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f

IF EXIST "C:\Program Files\Java\jre6\bin\jusched.exe" DEL "C:\Program Files\Java\jre6\bin\jusched.exe"



Supported command argumants from java.com:
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
Platform(s): Windows
Please log in to comment
16
Note
Get Installation (tested with Java(TM) 6 Update 18):

1. Download: http://www.java.com/nl/download/windows_ie.jsp?locale=nl
2. Start installation.
3. Check: Change Destination Folder (the setup will stop).
4. Copy the instaltion from:
C:\Documents and Settings\<USER>\Application Data\Sun\Java\jre1.6.0_18
5. Cancel installation.

Configuration:
I use the MST 1033.mst to edit
Property (*=default)
SYSTRAY = 0 (1*=On;0=Off) (Icon in SystemTray)
MOZILLA = 0 (1=Support;0*=Not supported)
JAVAUPDATE = 0 (1*=On; 0=Off)
AUTOUPDATECHECK = 0 (1*=On; 0=Off)
JU = 0 (1*=On; 0=Off) = Overruled Update Settings

Install:
msiexec /i jre1.6.0_18-c.msi transforms=sp1033.MST /qb

Test sites:
http://www.playtopia.nl
http://www.java.com/nl/download/installed.jsp
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
3
Command Line

jre-6u16-windows-i586-s.exe /s IEXPLORER=1

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
3
Note
http://java.com/en/download/help/6000070500.xml

Follow these steps to extract the .msi file from the Sun JRE installer for deployment through Active Directory based network:

1.Download and launch the Windows Offline Installation executable (.exe) file.

2.Navigate to LocalAppData folder (the user's Application Data folder). The location of the LocalAppData folder differs for each Windows platform.
•Windows Vista
C:\Users\</user>\AppData\LocalLow\Sun\Java\jre1.6.0_05\jre1.6.0_05.msi
•Windows XP
C:\Documents and Settings\</user>\Local Settings\ApplicationData\Sun\Java\ jre1.6.0_05\jre1.6.0_05.msi</user>
•Windows 2000
C:\Documents and Settings\</user>\ApplicationData\Sun\Java\jre1.6.0_05\ jre1.6.0_05.msi

3.From there, you can use Active Directory to distribute the Java Runtime Environment msi file to as many client Windows platforms as you want.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
3
Note
Java 6.0.180.79 - Finding MSI and MST files.

After downloading the installer, open your browser and naviget to:
(XP): c:\documents and settings\<username>\local settings\Temp

Start Java installation.
In the temp folder, sort by date, and notice the 6 files on the top, included 1 MSI file and 1 MST file.
I have experienced that the MSI and MST file are changing name, and my files are: 1586b005.msi and 1586b006.mst

I'm adding some registry entrys in the MST file:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_18\MSI]
"JAVAUPDATE"="0"
"AUTOUPDATECHECK"="0"
"MOZILLA"="1"


running it with:
msiexec /qn /i "1586b005.msi" TRANSFORMS="1586b006.mst"

It works, and there are no goolge toolbar with this installation :) I like...
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
3
Note
http://java.com/en/download/help/6000070500.xml

Follow these steps to extract the .msi file from the Sun JRE installer for deployment through Active Directory based network:

1.Download and launch the Windows Offline Installation executable (.exe) file.

2.Navigate to LocalAppData folder (the user's Application Data folder). The location of the LocalAppData folder differs for each Windows platform.
•Windows Vista
C:\Users\</user>\AppData\LocalLow\Sun\Java\jre1.6.0_05\jre1.6.0_05.msi
•Windows XP
C:\Documents and Settings\</user>\Local Settings\ApplicationData\Sun\Java\ jre1.6.0_05\jre1.6.0_05.msi</user>
•Windows 2000
C:\Documents and Settings\</user>\ApplicationData\Sun\Java\jre1.6.0_05\ jre1.6.0_05.msi

3.From there, you can use Active Directory to distribute the Java Runtime Environment msi file to as many client Windows platforms as you want.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
2
Note
Be aware that if you run "jre-6u17-windows-i586-s.exe /?" you will see the normal msi options window, giving you the impression that you can use msi options on the installer. They do work but the installer will finish and execute another installer, which will give the impression that the installer has finished before it actually has.

Run "start /wait jre-6u17-windows-i586-s.exe /qb /norestart" to see for yourself.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
2
Command Line
To avoid Msi Runtime Error 1603 (FilesInUse), you should check or kill instances of jqs.exe, iexplore.exe and firefox.exe, prior to installing jre-6u??-windows.exe.
Run native killer:

'taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'
or sysinternals pskill:
'pskill jqs.exe iexplore.exe firefox.exe'

My Vbs-Script for 6u18:

Set wshShell = CreateObject("Wscript.Shell")
Set wshFileSystem = CreateObject("Scripting.FileSystemObject")

sDisplayName = "Java(TM) 6 Update 18"
sUninstallString = "{26A24AE4-039D-4CA4-87B4-2F83216018FF}"

If IsInstalled(sDisplayName, sUninstallString) Then
' MsgBox sDisplayname & " wurde bereits installiert!", vbInformation, "Sytem Center Configuration Manager"
Else
iErrorLevel = wshShell.Run("pskill jqs.exe", 1, True)
iErrorLevel = wshShell.Run("pskill iexplore.exe", 1, True)
iErrorLevel = wshShell.Run("pskill firefox.exe", 1, True)
iErrorLevel = wshShell.Run("jre-6u18-windows-i586.exe /s /v""JAVAUPDATE=0 REBOOT=Suppress /passive /log c:\msi.log""", 1, True)
' MsgBox sDisplayname & " wurde erfolgreich installiert!", vbInformation, "Sytem Center Configuration Manager"
End If

WScript.Quit(iErrorLevel)

Function IsInstalled(DisplayName, AppName)
On Error Resume Next
IsInstalled = False
InstallString = wshShell.RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & AppName & "\DisplayName")
If Err.Number = 0 Then
If InstallString = DisplayName Then
IsInstalled = True
End If
Else
Err.Clear
End If
End Function

pskill.exe and jre-6u18-windows-i586.exe have to reside in the script folder.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
1
Note
I've changed this script for support x64 platform and automatic clossing msgbox (popup) windows after 2 minutes.

Set wshShell = CreateObject("Wscript.Shell")
Set wshFileSystem = CreateObject("Scripting.FileSystemObject")

sDisplayName = "Java(TM) 6 Update 24"
sUninstallString = "{26A24AE4-039D-4CA4-87B4-2F83216024FF}"

If IsInstalled(sDisplayName, sUninstallString) Then

' MsgBox sDisplayname & " wurde bereits installiert!", vbInformation, "System Center Configuration Manager"

Else

popup = WshShell.Popup("Software installation: " & sDisplayname & "." & Chr(13) & Chr(10) & "Web browsers will be closed untill 120 seconds or after click OK!", 120, "System Center Configuration Manager", 0 + 48)

iErrorLevel = wshShell.Run("taskkill /F /IM jqs.exe /T", 1, True)
iErrorLevel = wshShell.Run("taskkill /F /IM iexplore.exe", 1, True)
iErrorLevel = wshShell.Run("taskkill /F /IM firefox.exe", 1, True)
iErrorLevel = wshShell.Run("jre-6u24-windows-i586.exe /s AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0", 1, True)

End If

WScript.Quit(iErrorLevel)

Function IsInstalled(DisplayName, AppName)
On Error Resume Next

IsInstalled = False

'Check for x86 systems
InstallString = wshShell.RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\" & AppName & "\DisplayName")

If Err.Number = 0 Then


If InstallString = sDisplayName Then
IsInstalled = True
Exit Function
End If
End If

Err.Clear

'Check for x64 systems
InstallString = wshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" & AppName & "\DisplayName")

If Err.Number = 0 Then
If InstallString = sDisplayName Then
IsInstalled = True
Exit Function
End If

Else
Err.Clear
End If

End Function
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
1
Note
For Java(TM) 6 Update 24 6.0.240 I used the following...

Create File Sync job to copy the JRE executable to the target system. Note the download location, configure the managed install job to use the full command line.
/s = Silent install
IEXPLORER=1 = install plugin for IE
MOZILLA=1 = install plugin for Firefox (if applicable)
STATIC=1 = install as static installation. Java will be installed under C:\program files\Java rather than under user profile directory. It will also preserve older versions from being overwritten. This prevents unsupported applications from breaking.

Run Parameters:
Full Command Line: C:\kbox\downloads\jre-6u24-windows-i586-s.exe /s IEXPLORER=1 MOZILLA=1 STATIC=1
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
1
Note
Do not install the same java msi twice. Doing so will break the install. You can uninstall if you put 'regutils.dll' back in.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
0
Note

Here I published a tutorial for it and many others programs. Please comment on the blog if you have questions.

 

http://it-grund.blogspot.com/2012/04/how-to-deployinstall-silently-and.html

 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
0
Note
We were having an issue with computers not rebooting after receiving a Kace update for Java. This caused the installation of the newest version to fail due to the PendingFileRenameOperations check. Mornings after updates, users would be unable to access any application that required Java; creating a giant headache. To fix, we created a managed installation to execute any time and launch the installation with a batch file starting with these commands to kill Internet Explorer and delete the PendingFileRenameOperations key from the registry. tasklist /FI "IMAGENAME eq Iexplore.exe" 2>NUL | find /I /N "Iexplore.exe">NUL if "%ERRORLEVEL%"=="0" taskkill /f /im iexplore* REG delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /f
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
0
Note

One of the organisations that i do packaging for required to updates of the same version of java, (The versions are irrelevant as this should be a fix for all versions but they were. JRE 6 update 27 and JRE 6 update 32)

I found a bit of information on the "STATIC=1" command, this command allows java to install in a folder structure that allows for multiple updates of the same version to be installed at once. (ie. C:\Program Files (x86)\Java\jre6_27, instead of both versions fighting for the same "jre6" installation folder.

I tried putting the "STATIC=1" switch at the end of the MSI and imbedding it in the property table however after digging around for a while i found that the correct way to set this up is to extract the MSI from the exe with the "STATIC=1" in place. So for windows 7 the process for acquiring the "Static MSI" 

1. Run a Admin command prompt window
2. "C:\java6 update X.exe STATIC=1 Whateverotherswitchesyouwant=1" 
3. Navigate to the MSI extracted by the installation.
4. Collect your MSI and CAB file :)
5. Then Create a MST and package java the same as normal (other tips in guide should be able to give valuable information here)  

Any questions please feel free to send me a PM

Cheers, 

Spef
Spefdata.com, A Applications Packaging Blog

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment
0
Note
Tested version is Java 6 update 26 using SCCM.

Download the JRE from
http://java.com/en/download/manual.jsp

Use the following command line:-
@echo off
"%~dp0jre-6u26-windows-i586-s.exe" /s /v"AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 REBOOT=SUPRESS"
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f
reg add "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f
REM Return exit code to SCCM
exit /B %EXIT_CODE%

I modified this script from mockbox.com as the original failed to surpress Java from Auto Updating.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
Please log in to comment

Inventory Records (1)

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

Versions

Java 6 (Any Update Level)

Version

6

Questions & Answers (11)

Questions & Answers related to Oracle Java 6 (Any Update Level)

1
ANSWERS
2
ANSWERS
2
ANSWERS
0
ANSWERS
0
ANSWERS
1
ANSWERS
8
ANSWERS
5
ANSWERS

Blogs (3)

Blog posts related to Oracle Java 6 (Any Update Level)

blog
blog

Reviews (0)

Reviews related to Oracle Java 6 (Any Update Level)