Backtrack:  
 
by lunarg on May 29th 2015, at 13:24

The old method of disabling Java updates through the registry or GPO, mentioned in this article is no longer valid for Java 7 (1.7) and 8 (1.8), nor does it prevent the UAC prompt from appearing when the updater runs in the background. The method explained here is a better, more up-to-date solution to completely disabling Java updates from running, and includes the required registry change to stop the updater from running, preventing the UAC prompt from ever appearing.

Disable Java update from control panel

Disabling Java update from control panel is not as straight forward as it seems to be. Java update can only be disabled with administrative rights, so you need to run the Java control panel elevated. Since you can't do this through the control panel, you need to run the applet through its executable.

  1. Start Windows Explorer.
  2. Browse to the installation folder for Java. Depending on whether you have 32-bit and/or 64-bit installed (both are possible on a 64-bit machine), the path can be different. Also, if you did not keep the default path, the control panel executable could be somewhere else entirely:

    JavaWindowsDefault path
    32-bit32-bit%PROGRAMFILES%\Java\<jre-version>\bin
    32-bit64-bit%PROGRAMFILES(X86)%\Java\<jre-version>\bin
    64-bit64-bit%PROGRAMFILES%\Java\<jre-version>\bin
  3. Locate and right-click javacpl.exe, and select Run as Administrator.
  4. Now, make the change, and click OK to save.

Disable Java update through registry

You can disable Java updates through the registry (either directly or through GPP or scripts) by altering a few registry values.

Note that this does not prevent the updater from running, so you will still get an UAC prompt as the updater is started.

  1. Start regedit.
  2. Depending on your edition of Windows (32 or 64-bit), navigate to the key:
    • 32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy
    • 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy
  3. Change/create the following values:

    Value nameTypeNew value 
    EnableAutoUpdateCheckDWORD0Java 7 only! the data type is REG_BINARY on Java 8, and changing it does not prevent the download.
    NotifyDownloadDWORD0Disables download notifications.
    EnableJavaUpdateDWORD0Removes the Update tab from Java control panel.

    Setting EnableJavaUpdate to 0 also removes the Update tab from the Java Configuration applet in Control Panel.

Note that the registry changes above alone are not enough to prevent the Java updater from running. To prevent it from starting, and subsequently preventing the famous UAC prompt from appearing, follow the next step.

Disable Java update completely (prevents UAC prompt)

To prevent the update checker from running, you'll need to remove its automatic startup entry from the registry.

  1. Start regedit.
  2. Depending on your edition of Windows (32 or 64-bit), navigate to the key:
    • 32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy
  3. Delete the value SunJavaUpdateSched. The change will be active the next time you log on.
 
 
« November 2024»
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
 
Links
 
Quote
« When a bird does poo poo in your eye, be happy elephants don't fly. »