Archive: Java turn off automatic updates


Java turn off automatic updates
How to turn off java automatic update on nsis?


You can enable/disable it in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy
Value Name: "EnableJavaUpdate"
Data Type: DWORD
Value Data: 0 = Disabled, 1 = Enabled


Originally posted by Vankov in other thread (by accident)
WriteRegStr HKEY_LOCAL_MACHINE "\SOFTWARE\JavaSoft\Java Update\Policy" 'EnableJavaUpdate = 0'
and fails...
1) Because it's a DWORD value, you have to use WriteRegDWORD.
2) You have to seperate the keyname and the value ('EnableJavaUpdate' 0 instead of 'EnableJavaUpdate = 0'
3) You should start the subkey without a slash.

So the line should be
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\JavaSoft\Java Update\Policy" 'EnableJavaUpdate' 0

10x!It is work now! :)