Page 1 of 1

Custom Java

Published: August 7, 2018 - 09:29
by Deepack
Hello everyone! :)

I'm new here, so I'm still learning WAPT. For now, I'm working in a virtual lab. :)

I'm here to ask you something:

Is it possible to disable automatic Java updates (I'm currently doing it manually from the control panel)? I need to install it on 150 machines, so doing it manually isn't an option.


Thank you in advance. :D

Re: Custom Java

Published: August 8, 2018 - 3:48 PM
by Mathieu
Hello,

check the TIS package in the online repository; there's a Java package with the lines to disable automatic updates.

Re: Custom Java

Published: August 9, 2018 - 9:20 AM
by Deepack
Hello!

I've already looked, are these the lines?

Code: Select all

print("desactivation des mises a jour automatiques")
    if iswin64():
        key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
        reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
    else:
        key=reg_openkey_noredir(HKEY_LOCAL_MACHINE,r'SOFTWARE\JavaSoft\Java Update\Policy',sam=KEY_WRITE,create_if_missing=True)
        reg_setvalue(key,'EnableJavaUpdate',0,REG_DWORD)
Thanks in advance