- Message Boards
- Package KB
- Software KB
- Free Videos
- MSI Errors
- Tools
- Tech Home Pages
- Reviews
- Downloads
- Articles
- FAQs
- Tips & Tricks
- Services
- News
- Newsletter
| Company: | Sun Microsystems, Inc. |
| Setup Type: | Legacy setup with switch support |
| Package Difficulty Rating: |
[ Rate It or View Ratings ]
|
| Most Commonly Reported Method: | Windows Installer (with Custom Transform) |
| Record Created On: | 10/1/2007 |
| Number of Views: | 197,995 |
Full Name: jre
Version: 1.5.0_04-fcs
Publisher: Sun Microsystems, Inc.
Contact: Java Software
Comments: Java(TM) 2 Platform Standard Edition Runtime Environment
More Info URL: http://java.sun.com/
Quiet Install String: %J2SE_INSTALLER_EXE% /qn
Command Line Help: Standard MSI Commands:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/co
mmand_line_options.asp
Standard Installer Commands:*
%J2SE_INSTALLER_EXE% /qn
%J2SE_INSTALLER_EXE% /qb
Standard Uninstaller Commands*:
MsiExec.exe /x{PRODUCT_KEY}
MsiExec.exe /x{PRODUCT_KEY} /qn
Installation instructions:
http://java.sun.com/j2se/1.5.0
/jre/install-windows.html
Silent install instructions:
http://java.com/en/download/help/s
ilent_install.xml
*This information has not been verified by KACE.
Quiet Install String: %J2SE_INSTALLER_EXE% /qn
| Support for a silent install option by using the /silent flag was added with the release of version 1.0.1 | ||||
| Above Entry Provided on 4/19/2002 by bkelly | Rate It | Rating 119 | ||
| 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. | ||||
| Above Entry Provided on 1/30/2003 by stegmann | Rate It | Rating -16 | ||
| 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. | ||||
| Above Entry Provided on 7/11/2003 by dbaldwin | Rate It | Rating 117 | ||
| 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 | ||||
| Above Entry Provided on 12/10/2004 by Mauricem | Rate It | Rating 119 | ||
| 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" | ||||
| Above Entry Provided on 8/24/2005 by CamdenEngineer | Rate It | Rating 123 | ||
| 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" | ||||
| Above Entry Provided on 11/10/2005 by wbeck | Rate It | Rating 120 | ||
| 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 | ||||
| Above Entry Provided on 3/3/2006 by disaak | Rate It | Rating 117 | ||
| 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. | ||||
| Above Entry Provided on 11/21/2006 by Tuomas | Rate It | Rating 119 | ||
| 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 | ||||
| Above Entry Provided on 4/27/2007 by jparekh | Rate It | Rating 123 | ||
| 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 | ||||
| Above Entry Provided on 9/22/2009 by vbreil | Rate It | Rating 2 | ||
| 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. | ||||
| Above Entry Provided on 5/27/2010 by andykn | Rate It | Rating 1 | ||
| 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. | ||||
| Above Entry Provided on 4/19/2002 by bkelly | Rate It | Rating 120 | ||
| 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! | ||||
| Above Entry Provided on 5/12/2004 by nmead | Rate It | Rating 119 | ||
| 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. | ||||
| Above Entry Provided on 6/15/2004 by dsumners | Rate It | Rating 117 | ||
| 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. | ||||
| Above Entry Provided on 7/9/2004 by paulcobben | Rate It | Rating 120 | ||
| 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 | ||||
| Above Entry Provided on 7/10/2004 by ronnipedersen | Rate It | Rating 119 | ||
| 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. | ||||
| Above Entry Provided on 8/10/2004 by cduplessis | Rate It | Rating 117 | ||
| 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. | ||||
| Above Entry Provided on 12/8/2004 by breilley | Rate It | Rating 121 | ||
| 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 | ||||
| Above Entry Provided on 3/14/2005 by clewster | Rate It | Rating 119 | ||
| 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 | ||||
| Above Entry Provided on 6/13/2005 by criiser | Rate It | Rating 118 | ||
| 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 | ||||
| Above Entry Provided on 9/9/2005 by misterd | Rate It | Rating 118 | ||
| 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 | ||||
| Above Entry Provided on 11/3/2005 by kj_95376 | Rate It | Rating 120 | ||
| 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 | ||||
| Above Entry Provided on 12/3/2005 by ewaite | Rate It | Rating 122 | ||
| "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). | ||||
| Above Entry Provided on 6/22/2006 by meastaugh1 | Rate It | Rating 117 | ||
| *** 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! | ||||
| Above Entry Provided on 9/11/2006 by C_Denninger | Rate It | Rating 120 | ||
| 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. | ||||
| Above Entry Provided on 11/10/2006 by superpenut | Rate It | Rating 116 | ||
| 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 | ||||
| Above Entry Provided on 1/16/2007 by schieb | Rate It | Rating 116 | ||
| 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 ----------------- | ||||
| Above Entry Provided on 2/15/2007 by turbokitty | Rate It | Rating 117 | ||
| 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 | ||||
| Above Entry Provided on 2/19/2007 by nrh1703 | Rate It | Rating 117 | ||
| 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. | ||||
| Above Entry Provided on 2/28/2007 by jerthedude | Rate It | Rating 117 | ||
| 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 | ||||
| Above Entry Provided on 3/7/2007 by Matthew Dessem | Rate It | Rating 118 | ||
| 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 | ||||
| Above Entry Provided on 2/6/2008 by tvarvais | Rate It | Rating 117 | ||
| 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 | ||||
| Above Entry Provided on 3/10/2008 by sTore | Rate It | Rating 117 | ||
| 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... | ||||
| Above Entry Provided on 3/20/2008 by djseppie | Rate It | Rating 118 | ||
| 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 | ||||
| Above Entry Provided on 3/26/2008 by piotr.kuczkowski | Rate It | Rating 116 | ||
| 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". | ||||
| Above Entry Provided on 4/13/2009 by r_k | Rate It | Rating 4 | ||
| 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) | ||||
| Above Entry Provided on 8/17/2009 by realqbok | Rate It | Rating 7 | ||
| 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. | ||||
| Above Entry Provided on 10/14/2009 by packgedude | Rate It | Rating -3 | ||
| 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". | ||||
| Above Entry Provided on 4/30/2010 by keshav.jain | Rate It | Rating 5 | ||
| 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. | ||||
| Above Entry Provided on 4/30/2010 by keshav.jain | Rate It | Rating 5 | ||
| 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. | ||||
| Above Entry Provided on 4/30/2010 by keshav.jain | Rate It | Rating 5 | ||
| 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 | ||||
| Above Entry Provided on 4/30/2010 by keshav.jain | Rate It | Rating 4 | ||
| 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 | ||||
| Above Entry Provided on 7/29/2010 by FruF | Rate It | Rating 0 | ||
No information at this time. Discuss this package in the forum or click here if you have something to contribute!
No information at this time. Discuss this package in the forum or click here if you have something to contribute!
| Download it here. | ||||
| Above Entry Provided on 4/19/2002 by bkelly | Rate It | Rating 109 | ||
| Unattended install howto right from Sun. For JRE 1.4.2 | For JRE 1.3<br><br> | ||||
| Above Entry Provided on 11/6/2003 by kkbass | Rate It | Rating 107 | ||
| JRE 5.0 Update 8 | ||||
| Above Entry Provided on 8/30/2006 by Ap0kalipSe | Rate It | Rating 107 | ||
| InstallingOverall: 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 Registry: http://java.com/en/download/help/regkey_addremove.xml | ||||
| Above Entry Provided on 9/11/2006 by C_Denninger | Rate It | Rating 108 | ||
| Silent deployment guide for JRE 1.5: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/silent.html Seems to be valid also for 1.6, with exception for the JAVAUPDATE=0 wich no longer works. | ||||
| Above Entry Provided on 3/11/2008 by sTore | Rate It | Rating 109 | ||
| Deployment Guide for de Java SE 6 series. http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/properties.html | ||||
| Above Entry Provided on 4/29/2008 by mickman | Rate It | Rating 109 | ||
| A walk-through on deploying Java 1.6 through group policy | ||||
| Above Entry Provided on 2/3/2009 by shrapnel09 | Rate It | Rating 12 | ||
| JRE 1.6 update 10 and higher upgrade command lines for "Static" and "Patch in Place" options Examples of how the JRE 1.6 U10+ installer behaves under different scenarios | ||||
| Above Entry Provided on 3/23/2009 by JRV | Rate It | Rating 1 | ||
No information at this time. Discuss this package in the forum or click here if you have something to contribute!


[ 


Software Knowledge Base
Software Knowledge Base


