Is there a way to disable Automatic Updates specifically in Java 5.0 Update 11 through a registry hack or some kind of other fix?  I have read some places that it's possible and others say it's not possible.  Has anyone had any success?  I need to package this for a rollout and need this feature disabled.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
0

From here: http://www.appdeploy.com/packages/detail.asp?id=38

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!

you can use those properties on the commandline to do just that.  my MSI commandline is: ALLUSERS=1 REBOOT=REALLYSUPPRESS WEBSTARTICON=0 JAVAUPDATE=0 SYSTRAY=0

Answered 03/13/2007 by: Chipster
Blue Belt

Please log in to comment
0

Does this setting JavaUpdate to 0 work for all versions?  I think I did this on Java 5 Update 11 and it did not uncheck the automatically check for updates box.

Answered 03/13/2007 by: dpolishsensation
Blue Belt

Please log in to comment
-2

Yes it does NOT work.  Do a search.  Use a CA with a VB script that flips the reg key necessary.

Answered 03/13/2007 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
0

I have Java 5.0 Update 10 deployed to my organization and in my transform have the following options:

InstallExecuteSequence Table
CreateShortcuts (2150) removed

Property Table
EULA, 1
IEXPLORER, 1
JAVAUPDATE, 0
AUTOUPDATECHECK, 0
MOZILLA, 1
RebootYesNo, No
WEBSTARTICON, 0

My Java does not auto update.

I would be interested in knowing if there are differences in the behavior from update 10 to update 11 which nullify the transform I prepared.

Answered 03/13/2007 by: dlernstrom
Senior Yellow Belt

Please log in to comment
0

Using a transform like you do is just another way of setting the same property. Although I haven't tested this myself from what's been said here you could draw the conclusion that your transfrom won't work.

But that of course would be easy to verify in your testing environment!

There have been times where I have assumed something to work, and skimped on testing. Sooner or later I'd be testing anyways, to patch up the mess I created =)

Answered 03/14/2007 by: jib
Purple Belt

Please log in to comment
0

dlernstrom - quick question.  When you turn off autoupdate and javaupdate, does this uncheck the Automatically Check for Updates box?  When I turned both of these features to 0, the box stayed checked.

Answered 03/14/2007 by: dpolishsensation
Blue Belt

Please log in to comment
0

Jib,

You are absolutely correct in that if you skimp on testing, screwups are abundant.  I test everything using virtual machines via VMWare.  As I mentioned before, I have deployed Java 5.0 Update 10 and my transform works.

[hr]

dpolishsensation,
In Java 5.0 Update 10, the transform does uncheck the 'Automatically Check for Updates' box.  I haven't checked for Update 11, but am tempted to upgrade all of the Java at our site just to examine the behavior.

In my test lab, I also use a valuable FREE tool called RegShot for those times that I need to examine the implications of changing an option within a program.  The program examines the registry at its current state and takes a snapshot of it, you impliment a change, and then immediately take another snapshot.  The tool examines both snapshots and does a differential comparison.

Using the above mentioned method, I opened up my Java through the control panel, selected the appropriate tab, and performed a snapshot.  I hit 'auto check for updates' and then apply.  Next, I took another shapshot.  Here are my results:

DISABLING AUTO UPDATE AFFECTED THE FOLLOWING REGISTRY KEYS:
----------------------------------
Values deleted:1
----------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SunJavaUpdateSched: ""C:\Program Files\Java\jre1.5.0_10\bin\jusched.exe""

----------------------------------
Values added:1
----------------------------------
HKEY_USERS\S-1-5-21-3240312919-1883340450-2732008074-1298\Software\JavaSoft\Java Update\Policy\EnableAutoUpdateCheck: 01 00 00 00 D0 8C 9D DF 01 15 D1 11 8C 7A 00 C0 4F C2 97 EB 01 00 00 00 A2 E6 1E 5C 57 2F 22 41 96 72 60 78 58 C5 6F B7 00 00 00 00 1C 00 00 00 50 00 61 00 73 00 73 00 77 00 6F 00 72 00 64 00 20 00 44 00 61 00 74 00 61 00 00 00 03 66 00 00 A8 00 00 00 10 00 00 00 DB DD D3 CD E3 31 83 25 B6 A1 0F D4 1A FC 9C 8F 00 00 00 00 04 80 00 00 A0 00 00 00 10 00 00 00 FB 65 1D D4 E9 46 8D 0A AD 0F 10 18 15 85 05 EA 08 00 00 00 8D B6 6A AC 2F 54 A9 BE 14 00 00 00 34 0C 6A 77 BA 69 D9 21 46 7D CF 09 96 61 49 45 40 6D 01 28


ENABLING AUTO UPDATE MODIFIED THE FOLLOWING KEYS:
----------------------------------
Values deleted:1
----------------------------------
HKEY_USERS\S-1-5-21-3240312919-1883340450-2732008074-1298\Software\JavaSoft\Java Update\Policy\EnableAutoUpdateCheck: 01 00 00 00 D0 8C 9D DF 01 15 D1 11 8C 7A 00 C0 4F C2 97 EB 01 00 00 00 A2 E6 1E 5C 57 2F 22 41 96 72 60 78 58 C5 6F B7 00 00 00 00 1C 00 00 00 50 00 61 00 73 00 73 00 77 00 6F 00 72 00 64 00 20 00 44 00 61 00 74 00 61 00 00 00 03 66 00 00 A8 00 00 00 10 00 00 00 DB DD D3 CD E3 31 83 25 B6 A1 0F D4 1A FC 9C 8F 00 00 00 00 04 80 00 00 A0 00 00 00 10 00 00 00 FB 65 1D D4 E9 46 8D 0A AD 0F 10 18 15 85 05 EA 08 00 00 00 8D B6 6A AC 2F 54 A9 BE 14 00 00 00 34 0C 6A 77 BA 69 D9 21 46 7D CF 09 96 61 49 45 40 6D 01 28

----------------------------------
Values added:1
----------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\SunJavaUpdateSched: ""C:\Program Files\Java\jre1.5.0_10\bin\jusched.exe""



Conclusively speaking, if you want to do some sort of registy hack, use the above registry changes to impliment your particular setting (in JRE1.5.0_10).  However, if you want to use the transform, use what I initally suggested.

-David

Answered 03/14/2007 by: dlernstrom
Senior Yellow Belt

Please log in to comment
0

Create a vbscript custom action that runs very late in the execute sequence.

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

Answered 03/14/2007 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
0

Hi guys,
Just a quick observation.
When you're checking to see if the Autoupdate has been switched off make sure you are doing it for a locked down user. Sometimes it has worked but you don't see it till you log off and back on as a locked down user. The admin or installing account sometimes doesn't see the changes.

Answered 03/16/2007 by: mark_holland21
Second Degree Green Belt

Please log in to comment
0

Yes, I noticed that as well with disabling autoupdate using the internal property values.  Using the registry fix I note above, it works everytime.

Answered 03/16/2007 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
0
ORIGINAL:  turbokitty

Create a vbscript custom action that runs very late in the execute sequence.

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



very

Dim objRegistry : Set objRegistry = GetObject("winmgmts:{impersonationLevel=impersonate,authenticationLevel=pktPrivacy}!\\.\root\default:StdRegProv")
objRegistry.SetDWORDValue &H80000002,"SOFTWARE\JavaSoft\Java Update\Policy","EnableAutoUpdateCheck",00000000
objRegistry.SetDWORDValue &H80000002,"SOFTWARE\JavaSoft\Java Update\Policy","EnableJavaUpdate",00000000

Answered 03/25/2007 by: sethmccauley
Yellow Belt

Please log in to comment
0

I am using the javaupdate=0 switch for 1.6.0_01 but it still appears in the Java control panel.  Has this changed in this version?

Answered 04/03/2007 by: jbrunnqu
Senior Yellow Belt

Please log in to comment
0

Remember the Property value "JU=0" this one is needed to supress autoupdates. This one seems to be used if you are logged in with adminrights, even if you have set AUTOUPDATES=0 and AUTOUPDATECHECK=0.
Check this link http://itninja.com/link/silent-installation

/MN

Answered 04/03/2007 by: Mackan75
Orange Belt

Please log in to comment
0

Hi folks,
please read this tread carefully! The answer lies in there!
Shortly: The properties won't do it, because a Custom Action will overwrite whatever you set! You need a Custom Action, like turbokitty suggested.
Regards, Nick

Answered 04/03/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
0

Okay I'm trying to kill auto updates on JRE 6 Update 1.

I went through the same process that turbokitty suggested by doing a snapshot before unchecking the checkbox...I captured the entry that it put in and created a custom action at the very end of the install.  I also removed the entry from the Run key.

After my installation, the auto update checkbox was still checked....I went to the registry to see if my custom action worked and it did lay down the appropriate key and remove the Run key....so I renamed the "EnableAutoUpdateCheck" key to EnableAutoUpdateCheck2" then unchecked the box again....it recreated the "EnableAutoUpdateCheck" key but this time the Hex value was different than before....

NOTE: I installed the package on a different machine than the one I originally got these keys from....is Java generating a hex value based on the hardware??

Please help, I'm about to throw my machine against the wall!! [:@]

Answered 06/06/2007 by: daedilus
Senior Yellow Belt

Please log in to comment
0

Hey daeddilus,

the solution is in Nick's post. Do the CA to change the reg-key.


AD

Answered 06/07/2007 by: daff
Senior Yellow Belt

Please log in to comment
0

Hi All,
I was working on JRE 1.6 update version. I was unable to disable the update option in JAVA CONTROL PANEL. By adding AUTOUPDATECHECK=0, JU=0,JAVAUPDATE=0.
  and also I have deleted the registry SUNJAVAUPDATESCHED from HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN.
But all these options were failed to disable the update option.

please guyz can u provide any solution to dis issue................I need ur help ASAP............

Answered 09/06/2007 by: chandu
Yellow Belt

Please log in to comment
0

Hi Chandu,
with version 1.6.0.2 this properties finally seem to work!
However, this are only variables for the Custom Action in the MSI which sets the real regkeys.
The registry keys, that really toggle this, lie here:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy
EnableJavaUpdate + NotifyDownload are the values, that affect this.
If you set JAVAUPDATE=0, after the Installation "EnableJavaUpdate" should also be set to "0".
Regards, Nick

Answered 09/07/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
0

You should find that in earlier versions of J2SE (i.e., 1.5.0_07), setting the aforementioned MSI properties WILL NOT untick the automatic updates box in the control panel.  However, you will find that the MSI will not add an entry to HKCU\..\Run for the jusched.exe to load on startup, which means that the update settings will be irrelevant. As such, updates will not come down to the PC, despite the tick in the update box. If you install over the top of earlier versions -- of the same major and minor versions, but different patch level -- the settings will be retained from that earlier version *I think*.

Answered 09/27/2007 by: Hells_Teeth
Yellow Belt

Please log in to comment
0
Just a few Notes from my experience with Packaging Java 6 J2SE 1.6.0.0 for the benefit of everyone



http://forum.java.sun.com/thread.jspa?forumID=14&threadID=5116527



Automating the package:













Registry Keys







These Reg Keys were added when I customized the package:




These Reg Keys were modified:






The following keys were deleted:












































Answered 10/08/2007 by: davegbuf
Yellow Belt

Please log in to comment
0

This information would best serve the community if it were copied to the Package KB. If you've already done that, great: I apologise for disturbing you. If you haven't, you know what you must do... :)

Answered 10/08/2007 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity