• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
clivebuckwheat

Java 6 update 20 silent install with Auto update off not working

20 posts in this topic

What am I doing wrong? it installs silently just fine, but I need to turn of the auto update as well.

jre-6u20-windows-i586-s.exe /s /v /qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 AUTOUPDATECHECK=0 SYSTRAY=0 REBOOT=Suppress

0

Share this post


Link to post
Share on other sites

Hello!

Have you downloaded the good version for an installation offline?

JAVA

Choose the good one!

1) I think you can delete: "AUTOUPDATECHECK=0"

Works fine for me like this:( With Se7en_UA; I've rename the file: Java6u20.exe)

"CMD /C Start /Wait %SystemDrive%\APPS\SunJava\Java6u20.exe /qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0"

"REGEDIT /S %SystemDrive%\APPS\SunJava\6u20.reg" /f

"CMD /C REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v \"SunJavaUpdateSched\" /f" /f""

6u20.reg


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\JavaSoft\Java Update\Policy]

[HKEY_CURRENT_USER\Software\JavaSoft\Java Update\Policy]
"EnableAutoUpdateCheck"=hex:01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,\
c2,97,eb,01,00,00,00,9e,9b,bf,c2,27,b9,97,4f,9e,f0,76,37,a6,00,59,2b,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,10,66,00,00,00,01,00,00,20,00,00,00,dc,20,72,03,\
cd,3e,fb,cf,34,34,20,b4,69,52,58,ce,54,aa,93,6e,ed,44,31,b7,64,70,e3,1e,67,\
3a,81,c5,00,00,00,00,0e,80,00,00,00,02,00,00,20,00,00,00,19,16,10,6f,3a,80,\
e2,41,b7,60,ac,08,9b,3e,ca,86,ac,d8,6a,a2,ef,46,80,3b,ff,c8,f2,07,00,8c,23,\
a3,10,00,00,00,66,88,0e,7c,44,3c,ef,7b,ab,f0,2e,9a,87,17,34,48,40,00,00,00,\
6d,e8,dc,6a,1a,a5,5c,41,c5,d8,dc,6d,7d,c7,45,c3,3b,e5,57,d8,33,c5,ba,3c,9e,\
16,15,38,30,d7,1b,d0,93,b0,e0,24,9a,44,ba,39,c5,aa,e4,cc,71,53,8b,b2,ba,f8,\
e5,02,0d,d0,a5,be,e4,db,30,a0,aa,e4,5d,fc

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableAutoUpdateCheck"=dword:00000000
"EnableJavaUpdate"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

Tutorial Silent install

2) You can also try: works fine!

start /Wait %systemdrive%\Install\Java\jre-6u20-windows-i586-s.exe /s /v "/qn" 

You need to be carefull with the quotes and keep the space just after the letter v !

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Thank you.

I have the offline install and the silent install works fine but I can't get the auto updating to turn off.

I tried that regkey

It doesn't turn it off.

Edited by clivebuckwheat
0

Share this post


Link to post
Share on other sites

Weird! Works fine for me.

Have you tried to delete also this reg file?:

"CMD /C REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v \"SunJavaUpdateSched\" /f" /f""

You can try to add: JAVAUPDATE=0


start /Wait %systemdrive%\Install\Java\jre-6u20-windows-i586-s.exe /s /v "/qn" ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0

I think that the value [AUTOUPDATECHECK=0] isn't available for Silent installation for Java Sun! I've don't seen this value inside the tutorial InstallShield for Java!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

I have always just used the switches

/s ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1

plus a regfile

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000

Works fine for me.

Edit: I checked and I also stop java update scheduler from starting by the regfile

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"SunJavaUpdateSched"=-

Edited by krose
0

Share this post


Link to post
Share on other sites

myselfidem> AUTOUPDATECHECK is available in java installer.

You can check available variable for java installer at REG : [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_xx\MSI]

For java installer, I use :

jre-6u20-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 JQS=0 SYSTRAY=1 EULA=0 REBOOT=Suppress /L C:\Temp\java16u20.txt

and to disable JQS :

"%PROGRAMFILES%\Java\jre6\bin\jqs.exe" -unregister

My regfile for java :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_20]
"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000
"Frequency"=dword:01110000
"UpdateSchedule"=dword:00000000
"PromptAutoUpdateCheck"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

0

Share this post


Link to post
Share on other sites

Thanks hj_fr for those explainations! :rolleyes:

For me the silent install works fine!

Sure it's useful!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

I have two reg files that disable the auto updater from running at startup.

x86

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

x64

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

0

Share this post


Link to post
Share on other sites

There are two different files being installed here. The first is:

jre-6u20-windows-i586-s.exe

(used by clivebuckwheat)

and the second is

jre-6u20-windows-i586.exe

(used by hj_fr)

What's the difference between the file WITH "-s" and WITHOUT "-s" in the filename?

The latest version is now 6u21 and both of these files can be downloaded from Java.com.

If you want WITH "-s", it's http://javadl.sun.com/webapps/download/AutoDL?BundleId=40916

If you want WITHOUT "-s" it's http://javadl.sun.com/webapps/download/AutoDL?BundleId=40917

but I still don't know why there are two versions.

Both are for 32-bit systems, because there are other downloads for 64-bit. So, what's the difference between these two?

.

0

Share this post


Link to post
Share on other sites

Up :angel !

jre-6u20-windows-i586-s.exe

This generates a registry key "YahooPartnerToolbar" and proposes the installation of the toolbar

"HKCU \ Software \ YahooPartnerToolbar"

Bye

0

Share this post


Link to post
Share on other sites

So, the normal download from java.com tries to add a toolbar as well as Java.

One more thing to avoid (or suppress), along with the quick-starter, the updater, the notifications ("phone-home") back to Sun/Oracle.....

Thanks.

0

Share this post


Link to post
Share on other sites

There are two different files being installed here. The first is:

jre-6u20-windows-i586-s.exe

(used by clivebuckwheat)

and the second is

jre-6u20-windows-i586.exe

(used by hj_fr)

What's the difference between the file WITH "-s" and WITHOUT "-s" in the filename?

The latest version is now 6u21 and both of these files can be downloaded from Java.com.

If you want WITH "-s", it's http://javadl.sun.com/webapps/download/AutoDL?BundleId=40916

If you want WITHOUT "-s" it's http://javadl.sun.com/webapps/download/AutoDL?BundleId=40917

but I still don't know why there are two versions.

Both are for 32-bit systems, because there are other downloads for 64-bit. So, what's the difference between these two?

.

I've found some help here:

http://wpkg.org/Java

Extract:

Java Runtime Environment (JRE) 6 Update 21

There are various versions of the installer:

Those from a http://java.sun.com/javase/downloads/index.jsp which are aimed at developers or ISVs.

We want the 'Windows Offline Installation' version with a filename of jre-6u21-windows-i586.exe.

Also available here are 'Windows Online Installation' (jre-6u21-windows-i586-iftw-rv.exe) and 'Windows Kernel Installation' (jre-6u21-windows-i586-iftw-k.exe).

Those from http://www.java.com/en/download/manual.jsp which are aimed at consumers.

The versions available here are 'Windows 7/XP/Vista/2000/2003/2008 Online' (same as the 'Windows Online Installation' above) (jre-6u21-windows-i586-iftw-rv.exe) and 'Windows 7/XP/Vista/2000/2003/2008 Offline' (not the same as the 'Windows Offline Installation' above) (jre-6u21-windows-i586-s.exe).

In versions prior to update 19 or maybe 18 the installer filename ending in -s.exe tried to download the Google Toolbar so this may still be the case with this version.

"Java Quick Starter" is described as a prefetching service that should make java applications start faster. But it has a drawback: it must be killed before uninstallation or installation fails, and uninstallation via msiexec does not seem to be smart enough to do this.

Silent installation:

http://www.oracle.com/technetwork/java/javase/silent-136552.html

I hope that will help you!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

That page at wpkg http://wpkg.org/Java

... this page is for the Oracle Java Runtime Environment, previously known as the Sun Java Runtime Environment.
is quite the most comprehensive set of instructions I've seen for installing the JRE.

Thanks for the reference.

I've used the "-s" variation previously in the past to install the JRE, without being bothered by the toolbar installation, because the test install computer was disconnected from the network at the time. So, I guess, as the WPKG page says "... tried to download the Google Toolbar ..." means really that, if it can't download actually during the install process, it doesn't get installed.

Secondly, as you can see from my original two links, both versions of the file are available from the "consumer" site, but Oracle/Sun only publish one of the two links on the web page itself.

.

0

Share this post


Link to post
Share on other sites

I found that, with 6u20, the updater is a separate install within the .exe.

So if you uninstall the updater after installing the JRE the updater is gone:

start /wait jre-6u20-windows-i586-s.exe /s REBOOT=suppress SYSTRAY=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 JU=0
start /wait msiexec /x {4A03706F-666A-4037-7777-5F2748764D10} /qb-

The GUID appears to be the same for u21 ({4A03706F-666A-4037-7777-5F2748764D10}). For future versions you can check in the registry for HKLM\Software\Microsoft\Windows\Current Version\Uninstall for "Java Auto Updater" or similar

0

Share this post


Link to post
Share on other sites

I found that, with 6u20, the updater is a separate install within the .exe.

The WPKG page (see link earlier) uses the same solution:

Since approximately 1.6.18 / 6.0 update 18, Sun has included Java Auto Updater as a separate package that is automatically installed with the JRE. You can disable automatic updates by uninstalling the Java Auto Updater after the JRE is installed or upgraded, by adding the following to your package definition:

msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}

So it looks like the same GUID is used for JRE updates 18 through 21, so far.

.

Edited by James_A
0

Share this post


Link to post
Share on other sites

You should look here.

Thanks. Didn't know Kelsenellenelvian had made an installer.

.

0

Share this post


Link to post
Share on other sites

You should look here.

Thanks. Didn't know Kelsenellenelvian had made an installer.

.

Yes, really nice! Works without silent switchers and also with localised Windows versions!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.