- Message Boards
- Package KB
- Software KB
- Free Videos
- MSI Errors
- Tools
- Tech Home Pages
- Reviews
- Downloads
- Articles
- FAQs
- Tips & Tricks
- Services
- News
- Newsletter
Search AppDeploy
Java Runtime Environment 6.x
| Company: | Sun Microsystems, Inc. |
| Setup Type: | Native Windows Installer setup (MSI) |
| 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: | 66,556 |
No record in the Software KB was found to match this package.
| jre-6-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 REBOOT=Suppress | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 125 | ||
| Additional command line reference | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 119 | ||
| msiexec /i jre1.6.0.msi /qn this will show no gui at all but avoid the 1606 error which you will get if you're using /qb!. uninstalling using /qb! works fine. | ||||
| Above Entry Provided on 1/17/2007 by nik | Rate It | Rating 116 | ||
| This is the script I use for deploying java runtime. Tested and verified to work on WinXP SP2 and WinXP SP2 x64. Copy and paste the bit between the "---" into a cmd-file. Add this file to a GPO and deploy over AD. I've had some problems with the script installing the jre over and over again. The first condition test (if there is a folder called "jre1.6.0_01" in %programfiles%\java solves this issue, and will quietly exit if it's already installed. "JAVAUPDATE=1" on the install line isn't really needed. I just add it to make sure the reg-keys are made. After install I set the changes I want dor autoupdate etc. Usually I use the autoupdate on my admin-machine to see when there's a new release. for the other user-machines this check is off. You can change the reg-settings as necessary. --- if exist "%programfiles%\Java\jre1.6.0_01" goto end else install :install "\\domain.local\dfs\MSI\Sun Java v1.6.0 Update 1\jre-6u1-windows-i586-p.exe" /quiet /passive /norestart ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=1 :end :: Configure Plugin REG ADD "HKLM\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_01" /v HideSystemTrayIcon /t REG_DWORD /d 0 /f :: Disable Update REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyDownload /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyInstall /t REG_DWORD /d 1 /f rem REG DELETE "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v PromptAutoUpdateCheck /f --- HTH. | ||||
| Above Entry Provided on 4/25/2007 by adrian_vg | Rate It | Rating 117 | ||
| After downloading the offline installation from http://java.sun.com/javase/downloads/index.jsp Silent install with autoupdates disabled: jre-6u1-windows-i586-p.exe /s AgreeToLicense=YES IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0 | ||||
| Above Entry Provided on 4/18/2007 by cblake | Rate It | Rating 125 | ||
| For Java Runtime, I was finding my users contacting me saying 'shall I install the update?'. So in this configuration I have removed the update function, leaving it to me to test and deploy it in my own time (and saving some bandwidth from the Internet). :- \\servername\volname\foldername\jre\jre-6u3-windows-i586-p-s.exe /s /v"/qn ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0 /L c:\ins\jre6u3.txt" rem : Disable Update rem REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f rem REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 0 /f rem REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyDownload /t REG_DWORD /d 0 /f rem REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v NotifyInstall /t REG_DWORD /d 0 /f rem REG DELETE "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v PromptAutoUpdateCheck /f - Note: Remove the 'rem' from each line to use the commands. Always be careful when making changes to the registry. | ||||
| Above Entry Provided on 1/2/2008 by darkmarauder | Rate It | Rating 119 | ||
| For JRE-6u5-Windows-i585-p.exe I used the following command to silently install; jre-6u5-windows-i586-p.exe /qn ADDLOCAL=ALL SYSTRAY=0 EULA=0 IEXPLORER=1 JAVAUPDATE=0 AUTOUPDATECHECK=0 JU=0 REBOOT=ReallySupress I then did the following reg hack to make sure the Auto-Updates were disabled; [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 "NotifyDownload"=dword:00000000 "NotifyInstall"=dword:00000000 Then to silently un-install I ran the following; msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160050} | ||||
| Above Entry Provided on 9/24/2008 by Ashen | Rate It | Rating 7 | ||
| To disable the JQS service for Java 6u10 and higher use this command 'Disables the Java Quick Start service "C:\Program Files\Java\jre6\bin\jqs.exe -unregister" | ||||
| Above Entry Provided on 5/4/2009 by jmx600 | Rate It | Rating 1 | ||
| For disabling the Update function in Update 16: Simply create a mst file and change the "AUTOUPDATECHECK" and "JAVAUPDATE" public properties to 0 Then run the msi with the mst file applyed (msiexec /I jre1.6.0_16.msi TRANSFORMS=NoUpdate.mst /passive) | ||||
| Above Entry Provided on 9/22/2009 by ToMMeR | Rate It | Rating 2 | ||
| On Update 20 you have to edit the %USERPRIFILE%\AppData\LocalLow\Sun\Java\Deployment\deployment.propertiers file if you want to turn off the Auto-Download function. Add following row: deployment.javaws.autodownload=NEVER the rest of the file may be empty! | ||||
| Above Entry Provided on 7/12/2010 by CTieben | Rate It | Rating -1 | ||
| Why does /qb fail? Sun has added some new actions to the InstallUI Sequence, for some reason. Then they realised that /qn failed, so there's the same custom actions in the InstallExecuteSequence, but only when UILevel is 2. To tell Windows Installer that /qb should go down the same code path as /qn, replace every UILevel=2 with UILevel<=3 and every UILevel<>2 with UILevel>3 (in a Transform, of course) | ||||
| Above Entry Provided on 2/26/2007 by Lamarth | Rate It | Rating 5 | ||
| After running the J2SE Installer downloaded from <A href="http://java.sun.com/javase/downloads/index.jsp">Java JRE 6 update 1, browsing to the %temp% dir it created a random named .msi file. I copied this msi file, paste and renamed it jre-6u1-windows-i586-p.msi, and run this Install.cmd: Install.cmd: { jre-6u1-windows-i586-p.msi /qn AgreeToLicense=YES REGEDIT /S RemoveSunJavaUpdateCheck.reg } RemoveSunJavaUpdateCheck.reg: { Windows Registry Editor Version 5.00 ;Disable Java Update Check on Startup [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "SunJavaUpdateSched"=- } | ||||
| Above Entry Provided on 4/4/2007 by cireja | Rate It | Rating 4 | ||
| As of 4-18-07: Downloading from "jre-6u1-windows-i586-p-s.exe" http://www.java.com/en/download/manual.jsp does not work. The installer is apparently missing its transform. Download from http://java.sun.com/javase/downloads/index.jsp instead. This package is not distributed with the silencer. | ||||
| Above Entry Provided on 4/18/2007 by cblake | Rate It | Rating 117 | ||
| At the moment it looks like it's not possible to globally disable automatic updates. JRE 6.0u1 doesn't recognize the EnableAutoUpdateCheck or JavaUpdate keys. Instead the information is stored in binary format in HKCU\Software\JavaSoft\Java Update\Policy\EnableAutoUpdateCheck, and that information does not carry over to other users, even if the NTUSER.DAT file is copied over to the default user. JRE 5.0u6 is the most recent version where the automatic update behavior can be controlled for all users. | ||||
| Above Entry Provided on 5/10/2007 by tmountjr | Rate It | Rating 2 | ||
| I found this info how to get a msi file on http://openofficetechnology.com/book/export/html/23 Alex Run the JRE installation executable file, jre-6u1-windows-i586-p.exe. The License Agreement screen will appear. Do not click either "Decline" or "Accept". The installer executable will have placed a file called "jre1.6.0_01.msi" into the directory "C:\Documents and Settings\<your username>\Application Data\Sun\Java\jre1.6.0_01". Copy the .msi file to a network installation point, which is a location on the network accessible to the client computers, such as \\fileserver\net_install_images\jre1.6.0_01 Note 1: Earlier versions of JRE installation executable placed the .msi file into a subdirectory such as "C:\Documents and Settings\<your username>\Local Settings\Application Data\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}", where the name of the subdirectory depends on the JRE version. The .msi file corresponding to the JRE version can be located by looking in all subdirectories with names matching this pattern. Note 2: Neither the Java installer executable nor the .msi file support the “/a” administrative installation option. Returning to the License Agreement screen, click "Decline". The installer will delete the Application Data\Sun\Java directory and its .msi file, then terminate. | ||||
| Above Entry Provided on 5/10/2007 by hetoosten | Rate It | Rating 118 | ||
| Hi I found a way to disable the Updater! Using Wise Packet Studio i made a MST, contaning following REG-File (deploy in Windows directory): Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 "NotifyDownload"=dword:00000001 "NotifyInstall"=dword:00000000 "VisitorId"="3fb2c346-9331a7da4" "UpdateSchedule"=dword:00000000 "Frequency"=dword:00000001 With Wise i made a custom action (Execute program from destination), to import the REG durring "InstallFinalize" Regedit.exe -s c:\windows\[your-REG].reg | ||||
| Above Entry Provided on 7/11/2007 by joco | Rate It | Rating 123 | ||
| You can run the MSI and MST created with Wise package Studio with the /QB! switch. You should always creat a Transform for this MSI since the following needs to be changed or added: In the Registry, only the following keys need to be changed: I created an EXE with Wise Script Express that contained these Registry changes and called that EXE after InstallFinalize in the MSI Script with "Execute Program from Installation". [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 "EnableAutoUpdateCheck"=dword:00000000 "NotifyDownload"=dword:00000000 "NotifyInstall"=dword:00000000 "Frequency"=dword:010d0000 "UpdateSchedule"=dword:00000000 I make it a practice in ALL MSI or MST packages I create, do also make these changes: 1) Change the Reboot option to Never reboot 2) Change the installation option to Per-Machine 3) Hide the remove and Modify buttons and only have the Repair optin available (oh yeah, this option is disabled by default because it is broken in the Vendor MSI. If you enable it and run the Repair, it removes the application)good job Sun. 4) Add a Property called ROOTDRIVE (ALL CAPS no spaces) with a value of C:\ What this option does, is force the application to install to C: and not a different partition if the Users have one. This is not supposed to happen if C: has more space, but it does. KJ Wisepackager.com | ||||
| Above Entry Provided on 7/13/2007 by kj95376 | Rate It | Rating 5 | ||
| I used the following to install silently and prevent autoupdates thereafter: jre-1_5_0_11-windows-i586-p.exe /s AgreeToLicense=YES ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=RS WEBSTARTICON=0 JAVAUPDATE=1 JU=1 SYSTRAY=0 /l*v \"%TEMP%\jre1.5.0.11.msi.log\" Notice no more /V" switches As for the updates, the results were not consistent: -The registry values set would sometimes conflict with what the Java CPL applet would say. -JAVAUPDATE=1 seemed to control the Update tab in the Java CPL applet. -JU did nothing I could tell -None of these switches will remove (uninstall) previous versions of Java, they just accumulate in ARP and program files! -Sun does not document any of the JAVAUPDATE/AUTOUPDATECHECK/JU properties. With the disconnect between the registry setting and the Java CPL applet that I have witnessed, I would say these properties are for our frustration only. The true settings are probably buried inside some binary file. Remember: Java is cross-platform and only Windows has a registry. It makes sense for Sun not care too much how good the registry controls Java updates compared to how well some other "secret" file used in all versions of Java VM (not just windows). My solution to preventing the Java autoupdates regardless of what's already on the PC: Windows Registry Editor Version 5.00 ;forcefully disable AutoUpdates [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy] "EnableJavaUpdate"=dword:00000000 "EnableAutoUpdateCheck"=dword:00000000 "UpdateSchedule"=dword:00000000 "Frequency"=dword:01190000 ;Kill Java Update scheduler [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "SunJavaUpdateSched"=- | ||||
| Above Entry Provided on 8/28/2007 by misterd | Rate It | Rating 117 | ||
| Created an MST with the RegKeys above and added a Custom Action after the Install finalize with the following command: reg add "HKLM\Software\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f run in C:\windows\system32 and there is no update. Its the same as mentioned above, but with no external files. Thanks guys for your research. | ||||
| Above Entry Provided on 7/20/2007 by JoeC | Rate It | Rating 4 | ||
| Run setup just like mentioned before and stop at the moment you need to agree to the EULA! Go to your profile's temp directory. If it is has files in it, delete them before you start the setup. When the Java setup starts a file with a variable name (and a .msi extension) is created in this folder. Copy that out to a location of your choice. Stop the install of JRE. Use ORCA to open the copied .msi. Rename it if you like and look for the following entry: On the left side table-property on the right side "javaupdate" equals 1. Change the value of 1 to 0 and save the .msi. Place the .msi in a share which you use for distribution of software and add an entry to GPO. I have done this in the computer part of the GPO or else it may fail. | ||||
| Above Entry Provided on 7/27/2007 by edwinbrokx | Rate It | Rating 118 | ||
| Thanks you everyone for the entries and switches. I borrowed from everyone notes to develop one that I think works with no errors.. 1st I extraced the msi package from exe for the Jre you might have to do a search for it on your machine.. just do *.msi you will find it. It was placed on temp directory so I had to do some hunting.. 2nd. what switches do you want to turn off.. for our environment... We wanted to disable javaupdate and notifyinstall and the update schedule.. If you try to put the switches when the software is being installed they won't change from 0 to 1.. In the same batch file added the registry hacks to change the 0 to turn off the updates.. good luck.. :install msiexec.exe /i "\\JRE-610u\jrse16.msi" /quiet /passive /norestart ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress :Configure Plug-In reg add "HKLM\SOFTWARE\Javasoft\Java Plug-in\1.6.0_03" /v HideSystemTrayIcon /t reg_dword /d 0 /f :Disable Updates reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v EnableJavaUpdate /t reg_dword /d 0 /f :reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v Frequency /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyDownload /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyInstall /t reg_dword /d 0 /f :reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v UpdateSchedule /t reg_dword /d 0 /f :Delete from Run Key reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f | ||||
| Above Entry Provided on 11/8/2007 by itcnb | Rate It | Rating 120 | ||
| Anybody not confused about all these various proposals? Let me contribute ;-) I'll keep it simple. So this is what I found out distributing version 1.6.0_04 (6u4 or 6 update 4) with GPO. There's three things I wanted to accomplish: - disable automatic updating - hide the update tab for standard users (for admins you cannot hide it anyway) - stop the tray icon from showing up when visiting a website containing Java applets To achieve this - Open the extracted jre1.6.0_nn.msi in Microsoft's Orca. - Go to the properties table. - Change the value "SYSTRAY" to "0", this hides the tray icon. - Change the value "JU" to "0", this hides the update tab. - Change the value "AUTOUPDATECHECK" to "0", this disables the automatic updating. In fact it merely prevents the scheduler-entry to be written to the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registrykey. If you open the java control panel applet and look at the update tab it will look as if automatic updates were enabled - don't care! There is no need to change the "JAVAUPDATE" property (in fact I did not see any effect setting it to "0"). - Generate a transform to hold these changes. Do NOT save any changes to the .MSI. This way you will be able to reuse the transform file for future versions of the JRE. Also you might modify the transform while your GPO is and stays in effect (do not forget to redeploy in this case). - In your GPO create a new policy to install the .MSI modified by the transform. - If you have a previous version installed by GPO tell the new policy to update the old version by uninstalling it. Do not select "overwrite", because then you might end up with both versions installed on your clients. You may find clients where the uninstall of a previous version resulted in an ERROR so the new version will not be installed. Most likely you will solve the problem by manually reinstalling the old version and then reboot. Do not manually uninstall the reinstalled version! So why did I not change the "EULA" property? Because I was never confronted with an EULA when installing by GPO and I want to change as few things as possible to avoid any negative side effects (see next item). And why did I not change the "IEXPLORER" property? Because for one thing I found that the installer can find out itself and secondly - much worse - setting this to "1" was the cause for Java not to work properly on my XP clients! Java applets on websites simply would not load, instead there was only a grey box. B.T.W. to test your Java install sun provides the following webpage: http://java.com/de/download/help/testvm.xml So I hope this will get you up and running. | ||||
| Above Entry Provided on 2/27/2008 by SmoothOp | Rate It | Rating 10 | ||
| IMPORTANT CORRECTION of my above posting. I'm sorry I have to admit, I was wrong with my proposal to leave the "IEXPLORER" property untouched. Though Sun's Javatest webpage shows correct information about the Java install, other applets might not run! So you DO have to set "IEXPLORER" to "1". I did not see any side effects. Maybe my former findings were related to setting the "EULA" value. But as everything runs fine now, I did not check that one. | ||||
| Above Entry Provided on 3/19/2008 by SmoothOp | Rate It | Rating 121 | ||
| Our business goals were to get rid of the EULA, turn off autoupdates, remove the update tab from the JAVA Control Panel applet, have Java work with Internet Explorer, and have the package install silently (thus I was able to utilize /qn and avoid the /qb installation issue). I created an MST with the following settings using Acresso Admin Studio 9: Under Property Manager I set the following properties: 1. AUTOUPDATECHECK = 0 2. EULA = 0 3. IEXPLORER = 1 4. JAVAUPDATE = 0 I then created a Custom Action as follows: 1. Run VBscript code 2. Location stored directly in custom action (places code in MST) Code snippet Set Shell = CreateObject ( "WScript.Shell" ) Shell.RegWrite "HKLM\SOFTWARE\JavaSoft\Java Update\Policy\EnableJavaUpdate", "0", "REG_DWORD" 3. Return processing = Synchronous (Ignores exit code) 4. Run during Patch Uninstall = No 5. In-Script Execution = Immediate Execution 6. Execution Scheduling = Always Execute 7. Install UI Sequence = Absent from Sequence 8. Install execute sequence = After InstallFinalize I had to create the custom VB action because I found setting the JU property to 0 never removed the update tab from the Java control panel applet. | ||||
| Above Entry Provided on 12/3/2008 by MichaelS | Rate It | Rating 6 | ||
| (This issue is now fixed in Java 6 Update 12 and beyond - see below) BEWARE - The MSI packages for Java 6 Update 10 and Java 6 Update 11 are BROKEN and will hang if you attempt to upgrade, remove or redeploy them once they are installed via Group Policy Software Installation. This is an issue with the installation logic and the new Java Quick Starter Service (jqs.exe), in that the installer will present a dialog asking for this process to be closed, which is invisible during Group Policy Software Installation. If you have already deployed these packages, you can work around this by disabling the JavaQuickStarterService inside Group Policy when deploying the software. See the following Sun forum post for more information and discussion: http://forums.sun.com/thread.jspa?threadID=5341011 EDIT 20/3/09 - This issue has been resolved since Java 6 Update 12, as has the issue with /qb mentioned by Lamarth above - see Java Bug ID 6782024 and Java Bug ID 6764967. | ||||
| Above Entry Provided on 3/20/2009 by Minkus | Rate It | Rating 21 | ||
| Download the new update: jre-6u12-windows-i586-p-s.exe or jre-6u12-windows-i586-p.exe NOTE: The install does not put all the files into %temp% with the new Update 12 during the install. As such follow the directions below. Run the install of the application manually to allow for the EXE to install the MSI and extract all the installation source files. To determine were the installation sources files are (MSI and CAB) you can look in the registry [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216012FF}] "InstallSource"="<LOCATION TO GO TO>" In the installsource location you will find both the MSI and the CAB file which will now allow you to create your MST file for the silent install of the application. In the MST you can also include the changes you need to make in the registry to disable auto updates or perform any other standard deployment practices. | ||||
| Above Entry Provided on 3/1/2009 by cory2211 | Rate It | Rating 4 | ||
| Version 6 Update 13: The process is similar to cory2211 did with update 12. I download the offline file and the run it on the clean machine. Get the .msi and .cab file under (this is from a xp machine) C:\Documents and Settings\"profile"\Application Data\Sun\Java\jre1.6.0_13. I used Orca to make an .mst file. under Property table, I make the following changes: AutoUpdateCheck = 0 IExplorer = 1 JavaUpdate = 0 Mozilla = 1 Systray = 0 | ||||
| Above Entry Provided on 5/4/2009 by enzogoy | Rate It | Rating 4 | ||
| Here is my VB script I wrote to deploy Java 6u12, it can easily be modified for 13 and up. I created this to run in SMS and return the correct error codes. It works for various applications just modify and remove the sub routines you don't need. I wrote this to fix my 6u10 deployments where I needed to stop the jqs service in order to remove it. I then decided to make sure all of my systems left the jqs service disabled as I saw no delay in launching java apps without it. Not Perfect but it works very well. I am sure someone with more advance vb script knowledge could fine tune this. Dim WshShell Set WshShell = WScript.CreateObject("Wscript.shell") strWinDir = WshShell.ExpandEnvironmentStrings("%SYSTEMROOT%") Dim ReturnCode AppPath = GetPath RemoveOldVersions ReturnCode = 1 'Installes New Version 'WScript.Echo WshShell.CurrentDirectory WshShell.CurrentDirectory = AppPath 'WScript.Echo WshShell.currentDirectory ReturnCode = WshShell.Run("jre-6u12-windows-i586-p.exe IEXPLORER=1 JAVAUPDATE=0 AUTOUPDATECHECK=0 MOZILLA=1 JU=0 SYSTRAY=0 /qn",, True) 'Exit Path determined by ReturnCode Select Case ReturnCode Case 0 DisableUpdates DisableJQS 'WScript.Echo "Installation Completed successfully: " & ReturnCode WScript.Quit(ReturnCode) Case 3010 DisableUpdates DisableJQS 'WScript.Echo "Installation Completed successfully, Reboot Required: " & ReturnCode WScript.Quit(ReturnCode) End Select 'WScript.Echo "Installation ended with error: " & ReturnCode WScript.Quit(ReturnCode) Sub RemoveOldVersions 'Disables the JQS Service for removal DisableJQS 'Removes old Versions ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160000} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160010} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160020} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160030} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160040} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160050} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160060} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("MsiExec.exe /x{3248F0A8-6813-11D6-A77B-00B0D0160070} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("Msiexec.exe /x{26A24AE4-039D-4CA4-87B4-2F83216010FF} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("Msiexec.exe /x{26A24AE4-039D-4CA4-87B4-2F83216011FF} /qn REBOOT=reallysuppress",, True) ReturnCode = WshShell.Run("Msiexec.exe /x{26A24AE4-039D-4CA4-87B4-2F83216012FF} /qn REBOOT=reallysuppress",, True) End Sub Sub DisableUpdates 'Sets registry Keys EnableJavaUpdate, UpdateSchedule, NotifyDownload, Frequency to the Value of 0 'These remove the update tab In the Java console and disable updates. Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\JavaSoft\Java Update\Policy" dwValue = 0 strValueName = "EnableJavaUpdate" oReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue strValueName = "UpdateSchedule" oReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue strValueName = "NotifyDownload" oReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue strValueName = "Frequency" oReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dwValue End Sub Sub DisableJQS 'Disables the Java Quick Start service On Error Resume Next WshShell.CurrentDirectory = "C:\Program Files\Java\jre6\bin\" WshShell.Run "jqs.exe -unregister",, True End Sub Function GetPath Dim path path = WScript.ScriptFullName ' script file name GetPath = Left(path, InStrRev(path, "\")) End Function | ||||
| Above Entry Provided on 5/4/2009 by jmx600 | Rate It | Rating 4 | ||
| To add proxy information. (This is for version 1.6.0.X-14) Make 2 files with the filenames. "deployment.config" "deployment.properties" Look in the install.cmd script below to see where they go. In the file "deplyment.config" add: deployment.system.config=file\:/C\:/WINDOWS/Sun/Java/Deployment/deployment.properties deployment.system.config.mandatory=false In the file "deployment.properties" add: #deployment.properties deployment.proxy.ftp.host=your.proxy.com deployment.proxy.https.port=8080 deployment.proxy.ftp.port=8080 deployment.proxy.type=1 deployment.proxy.http.host=your.proxy.com deployment.proxy.https.host=your.proxy.com deployment.proxy.same=true deployment.browser.vm.mozilla=true deployment.capture.mime.types=true deployment.javapi.cache.update=true deployment.proxy.http.port=8080 deployment.javaws.autodownload=NEVER deployment.system.tray.icon=false deployment.proxy.bypass.local=true More alternatives here: http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/properties.html Make a commands in a script that are similar to that I have made in the script below. I have added my whole install.cmd script here. (server names modified) Title Sun Java Runtime 1.6.0.14 INSTALL net stop "Java Quick Starter" >nul ::waiting for the service to stop ping localhost -n 10 >nul set SOURCE=\\server\share$\Sun\Java\1.6.0.14 MSIEXEC /i "%SOURCE%\jre1.6.0_14.msi" /qn reg add "HKLM\SOFTWARE\Javasoft\Java Plug-in\1.6.0_14" /v HideSystemTrayIcon /t reg_dword /d 0 /f ::Disable Updates reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v EnableJavaUpdate /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v Frequency /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyDownload /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v NotifyInstall /t reg_dword /d 0 /f reg add "HKLM\SOFTWARE\Javasoft\Java Update\Policy" /v UpdateSchedule /t reg_dword /d 0 /f ::Delete from Run Key reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f ::Proxy settings md "C:\WINDOWS\Sun\Java\Deployment" copy "%SOURCE%\deployment.config" "C:\windows\sun\Java\Deployment" /Y copy "%SOURCE%\deployment.properties" "C:\windows\sun\Java\Deployment" /Y net start "Java Quick Starter" exit /b 0 | ||||
| Above Entry Provided on 12/8/2009 by Arvidb | Rate It | Rating 3 | ||
| Hi everyone ... Using Orca for Altiris install, very easy: Transform:Property: 1. AUTOUPDATECHECK = 0 2. EULA = 1 3. EULA_JAVAFX_ACCEPT = yes 4. IEXPLORER = 1 5. JAVAUPDATE = 0 6. JU=0 7. MOZILLA = 1 8. SYSTRAY = 0 ALTIRIS: Set path to installer Check run in quiet mode Check copy switch: TRANSFORMS=jre1.6.0_XX.mst After install, on test box, goto: http://java.com/en/download/help/testvm.xml Should display current installed version What I discovered is that when logged in as an admin, the update tab will be visible. When logged in as a non-admin account, it is not visible. Same note as above regarding autoupdate check. You can double check to verify that updates are not working by configuring the auto-update to daily and the clock to the next hour. Leave it alone, it will not auto update (recheck with the website). I did not need a reg fix or vb script to change any settings. If you discover something to the contrary, please email me. | ||||
| Above Entry Provided on 7/23/2009 by SilentWarrior | Rate It | Rating 5 | ||
| I'm so sick of fighting with disabling auto updates with JRE. Every version seems to be slightly different. Anyway, today I refer specifically to 1.6.0_14 (aka version 6 update 14). The install .exe accepts MSI command-line arguments which is cool. I created a transform that contains a vbs custom action to delete the "Run" registry entry for jusched.exe. It seems that if jusched.exe isn't running auto updates don't happen, regardless of the other update settings. The custom action is last in the InstallExecuteSequence. Simple and hopefully works for future versions too. Now I just run "jre-6u14-windows-i586-s.exe TRANSFORMS=NoUpdateSched.mst /qb!" and it's done. You can even speed up the install a little by getting the extracted msi and cab files from "%USERPROFILE%\Application Data\Sun\Java\jre1.6.0_14\" and run "msiexec /i jre1.6.0_14.msi TRANSFORMS=NoUpdateSched.mst /qb!", this way the exe doesn't have to extract them first. Here's the vbs: Option Explicit Const HKEY_LOCAL_MACHINE = &H80000002 ' Setup registry connector Dim strComputer, objReg, oShell On Error Resume Next strComputer = "." Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv") Set oShell=CreateObject("Wscript.Shell") DeleteRegKeyValue HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "SunJavaUpdateSched" Wscript.Quit 0 Function DeleteRegKeyValue(strRegistry, strKeyPath, strValueName) objReg.DeleteValue strRegistry,strKeyPath,strValueName End Function | ||||
| Above Entry Provided on 8/5/2009 by bubbdj | Rate It | Rating 0 | ||
| For JRE 6_17 follow these steps: ------------------------------------------------------------ -Download from: "https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u17-oth-JPR@CDS-CDS_Developer" ------------------------------------------------------------ -Extract MSI + CAB from "%USERPROFILE%\Application Data\Sun\Java\jre1.6.0_17" ------------------------------------------------------------ -Create MST or command line with property's: AUTOUPDATECHECK=0 EULA=1 IEXPLORER=1 JAVAUPDATE=0 JU=0 MOZILLA=1 REBOOT=ReallySuppress SYSTRAY=0 ------------------------------------------------------------ - Add the EULA user info by adding the RegKey/value: HKCU\Software\JavaSoft\Java Runtime Environment\1.6.0_17\ EULA=1 (REG_DWORD) I did this by using Active Setup, learn more about this technique on "http://www.etlengineering.com/installer/activesetup.txt" ------------------------------------------------------------ Enjoy | ||||
| Above Entry Provided on 11/9/2009 by FunnyName | Rate It | Rating 4 | ||
| Disable Automatic Update in Latest Versions Since approximately 1.6.18 / 6.0 update 18, Sun has included Java Auto Updater as a separate package that is automatically installed with the JRE. You can disable automatic updates by uninstalling the Java Auto Updater after the JRE is installed or upgraded, by the following command line: msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10} | ||||
| Above Entry Provided on 8/4/2010 by Rheuvel | Rate It | Rating 1 | ||
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 here | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 115 | ||
| ReadMe | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 3 | ||
| Release Notes | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 117 | ||
| Information on how to obtain an MSI file | ||||
| Above Entry Provided on 12/13/2006 by tranky | Rate It | Rating 119 | ||
| Locating and downloading the installer executable: http://OpenOfficeTechnology.com/node/25 Extracting the msi file from the installer executable: http://OpenOfficeTechnology.com/node/26 | ||||
| Above Entry Provided on 12/17/2006 by ootech | Rate It | Rating 117 | ||
| If you're trying to install the jre1.6.0.msi package using msiexec /qb! you may receive msi error code 1606 "Could not access network location 0". check the following links for more information: - http://forum.java.sun.com/thread.jspa?threadID=5116527&tstart=0 - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6510981 | ||||
| Above Entry Provided on 1/15/2007 by nik | Rate It | Rating 117 | ||
| This is all you need for an Active Directory deployment I'm quite positive it's the exact same for v.1.6.0. | ||||
| Above Entry Provided on 7/31/2007 by masken | Rate It | Rating 116 | ||
| Sun JRE silent install guide: Not much we don't already know, but some of the switches might be useful. http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | ||||
| Above Entry Provided on 4/16/2008 by nzdude | Rate It | Rating 117 | ||
| Notes regarding Patch-in-place configuration: The patch-in-place mode implies that when a version of the JRE exists on a machine, any updates belonging to the same JRE family will be done in place, meaning, the existing JRE will be patched with changes. A JRE is installed in patch-in-place mode by default. The default installation directory is c:/Program Files/Java/jre<n> where n is the Java SE minor version number (for example, n = 6 for version 1.6.0_10). For example, if a user has previously installed JRE 6u10 in the c:/Program Files/Java/jre6 directory, and now attempts to install JRE 6u14, the version 6u14 installer does not create a new directory. Instead, it updates the pre-existing c:/Program Files/Java/jre6 directory with the new 6u14 content. The user is left with the 6u14 JRE only. The 6u10 JRE no longer exists. Static configuration When a JRE is installed in the static mode, it will not be updated in place by newer versions. A later version of the same JRE family will be installed in a separate directory. This mode ensures that vendors, who require a specific version of the JRE for their product, can be certain that the JRE will not be overwritten by a newer version. Some of the characteristics of a static JRE installation are as follows: A static JRE installation (example: 6u15) will ignore a previous patch-in-place installation of another JRE (example: 6u10) A static JRE installation is never overwritten by another JRE version When a newer JRE version is present (example: 6u15), older JRE versions ( example: 6u12) are installed in static mode only A patch-in-place JRE can be overwritten by a static JRE installation of the same version. The user will be left with one static JRE installation. The default installation directory of a static JRE is of the form c:/Program Files/Java/jre<version>. For example, by default, a static JRE for Java SE 6u10 will be installed in the directory c:/Program Files/Java/jre1.6.0_10. See JRE Update Scenarios to see examples of how the installer behaves. JRE Installation Command Line Syntax <jre>.exe [/lang=<language ID>] /s [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 (see language IDs) /s, if used, specifies a silent installation INSTALLDIR, if used, specifies the drive and path of the installation If INSTALLDIR is not specified, the installation will go into C:\Program Files\java\jre6 (default location). REBOOT=Suppress, if used, indicates that if locked files are encountered the computer should not be rebooted. Most JRE installations will not ask for a reboot. STATIC=1, if used, specifies a static installation | ||||
| Above Entry Provided on 1/5/2009 by nzdude | Rate It | Rating 4 | ||
| JavaTM Runtime Environment Update Scenarios for JavaSE 6u10 Java Runtime Environment (JRE) may be installed in family or static modes. This document describes various scenarios to demonstrate the behavior of the JRE update process. | ||||
| Above Entry Provided on 1/5/2009 by nzdude | Rate It | Rating 0 | ||
| Java Runtime Wiki with the latest info about deployment and such: http://wpkg.org/Java#Latest_Version | ||||
| Above Entry Provided on 8/4/2010 by Rheuvel | Rate It | Rating 0 | ||
| I was able to stop the Automatic Updates from occuring by setting a Software Restriction Policy using Group Policy. I blocked the JUSCHED.EXE and JUCHECK.EXE files from running. When doing a manual check, a couple of errors are logged in the Application log, but the user sees nothing. Should work the same for a scheduled check. | ||||
| Above Entry Provided on 5/29/2007 by BigRedRPB | Rate It | Rating 122 | ||


[ 


Software Knowledge Base
Software Knowledge Base


