[SOLVED] Disable Java Upate via Registry

Topics: Configuration Issue, Publishing Issue
Oct 21, 2013 at 2:06 PM
Edited Oct 21, 2013 at 3:32 PM
Hello Guys,
i write a little vbscript that disable the java update:
Err = 0
set objShell=CreateObject("wscript.shell")

'Schlüssel ändern/hinzufügen
objShell.regwrite "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy\EnableJavaUpdate", "0", "REG_DWORD"

WScript.Quit(Err)
I create a customer update and added the vbscript as task.
Than i create follow rules:

https://cloud.wurzach-it.de/owncloud/public.php?service=files&t=e089286814d09cbf58e50ca24c559631
https://cloud.wurzach-it.de/owncloud/public.php?service=files&t=643d6fd8ed8aa19ca7ef40b32a588ae0
https://cloud.wurzach-it.de/owncloud/public.php?service=files&t=172a5cea4cddbf65fcc390aaf70484d4

https://cloud.wurzach-it.de/owncloud/public.php?service=files&t=cbbfe312503e8c1f94ae7531370948f9

I clean up the software distribution directory. But i don't see the update.
What am I doing wrong?

Daniel
Coordinator
Oct 21, 2013 at 5:55 PM
Hello,

First, why are you using a VBScript to do that ? This can be achieve by a 'Registry' Action (modify).
Registry Action

Second, if you want to set to 0 a registry value, why do you try to detect a registry value set to 1 for IsInstalled, and not set to 1 for IsInstallable ?
Third, try to check the checkbox 'Registry 32bit'.
Marked as answer by DCourtel on 10/21/2013 at 12:37 PM
Oct 21, 2013 at 6:51 PM
Hi DCourtel,
humpf... you are right. That is the easiest method. I changed it and configured the correct values for the detection.
Now i work's fine. Thank you!
Editor
Oct 21, 2013 at 8:04 PM
Hi,

as I don't understand completly what Oracle does with JAVA Update, why wouldn't you not just only use a customized .mst file and set JU=0? Wouldn't that suffice?

Regards
Norbert
Oct 21, 2013 at 8:10 PM
Hi Norbert,
we habe problems (control panel cash on start) with the deployment of Java 7 update 25 when we use the msi file. Our tests show us, thats something wrong. But we don't know what. Also we can't update to the newest version because some applications don't work anymore.

Now we deploy java 7u25 as exe file and disable the update via customer update. than all applications work fine.

Regards,
Daniel
Editor
Oct 21, 2013 at 8:20 PM
badwurzach wrote:
Hi Norbert,
we habe problems (control panel cash on start) with the deployment of Java 7 update 25 when we use the msi file. Our tests show us, thats something wrong. But we don't know what.
I would than investigate further. ;) Usually it's remains from older versions. Does this happen on clean new OS too?
Also we can't update to the newest version because some applications don't work anymore.
Yes, because Java is absolutly sandboxed and secure. So Banking programs and Websites only work with old Versions. ;) I've seen a lot of such stuff lately.
Now we deploy java 7u25 as exe file and disable the update via customer update. than all applications work fine.
Didn't this help?
https://www.codeplex.com/Download?ProjectName=WsusPackagePublisher&DownloadId=528658

Regards
Norbert
Editor
Oct 21, 2013 at 8:20 PM
NorbertFe wrote:
badwurzach wrote:
Hi Norbert,
we habe problems (control panel cash on start) with the deployment of Java 7 update 25 when we use the msi file. Our tests show us, thats something wrong. But we don't know what.
I would than investigate further. ;) Usually it's remains from older versions. Does this happen on clean new OS too?
Also we can't update to the newest version because some applications don't work anymore.
Yes, because Java is absolutly sandboxed and secure. So Banking programs and Websites only work with old Versions. ;) I've seen a lot of such stuff lately.
Now we deploy java 7u25 as exe file and disable the update via customer update. than all applications work fine.
Didn't this help?
https://www.codeplex.com/Download?ProjectName=WsusPackagePublisher&DownloadId=528658
And Setting this above registry value would be much easier with Group Policy. ;)

Regards
Norbert
Oct 22, 2013 at 1:35 PM
Didn't this help? https://www.codeplex.com/Download?ProjectName=WsusPackagePublisher&DownloadId=528658
This helps only if you install Java with the exe file. Autoupdate is a seperate installation file. :-)

I would than investigate further. ;) Usually it's remains from older versions. Does this happen on clean new OS too?
Unfortunately, i have no more time for Troubleshooting. I rollout tonight the 7u45 and my programs work again.