Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

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

- - - - -

  • Please log in to reply
19 replies to this topic

#1
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 574 posts
  • Joined 07-November 05
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


How to remove advertisement from MSFN

#2
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 26 June 2010 - 11:45 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#3
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 574 posts
  • Joined 07-November 05
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, 26 June 2010 - 11:08 AM.


#4
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 26 June 2010 - 11:38 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#5
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 574 posts
  • Joined 07-November 05
neither worked to turn off the auto update feature.

#6
krose

krose

    Junior

  • Member
  • Pip
  • 80 posts
  • Joined 05-September 05
  • OS:Windows 7 x64
  • Country: Country Flag
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, 26 June 2010 - 05:28 PM.


#7
hj_fr

hj_fr

    Member

  • Member
  • PipPip
  • 144 posts
  • Joined 09-August 04
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"=-


#8
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks hj_fr for those explainations! :rolleyes:
For me the silent install works fine!
Sure it's useful!

Edited by myselfidem, 27 June 2010 - 11:15 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#9
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,258 posts
  • Joined 16-April 05
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"=-

Custom Installers for your unattended needs.


#10
James_A

James_A

     

  • Member
  • PipPip
  • 148 posts
  • Joined 23-December 07
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?

.

#11
Shepper01

Shepper01
  • Member
  • 1 posts
  • Joined 05-August 10
  • OS:XP Pro x86
  • Country: Country Flag
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

#12
James_A

James_A

     

  • Member
  • PipPip
  • 148 posts
  • Joined 23-December 07
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.

#13
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

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.co...ent-136552.html

I hope that will help you!

Edited by myselfidem, 05 August 2010 - 02:06 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#14
James_A

James_A

     

  • Member
  • PipPip
  • 148 posts
  • Joined 23-December 07
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.

.

#15
andykn

andykn
  • Member
  • 1 posts
  • Joined 28-June 10
  • OS:none specified
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

#16
James_A

James_A

     

  • Member
  • PipPip
  • 148 posts
  • Joined 23-December 07

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, 06 August 2010 - 01:26 PM.


#17
radix

radix

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 755 posts
  • Joined 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag
You should look here.


#18
James_A

James_A

     

  • Member
  • PipPip
  • 148 posts
  • Joined 23-December 07

You should look here.


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


.

#19
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,515 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

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!
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#20
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,974 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
:P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users