/build/static/layout/Breadcrumb_cap_w.png

JRE 1.6.0_11 - Unattended Install

I am having an issue when deploying JRE 1.6.0_11. If users are logged in and have any browser windows open the install prompts them to close the browsers before it will continue.

This is the command line I am using to install.

jre-6u11-windows-i586-p-s.exe /s ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Supress

Is there a switch available that will tell the installer to force the applications to close and continue without user interaction? This only affects about 10% of the installs but I want to avoid users cancelling the installation.

Also, I have had no success extracting a useful MSI from this version, as I have done with past versions. Has anyone had any luck with that?

Thanks

0 Comments   [ + ] Show comments

Answers (5)

Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
first, i'm pretty sure you don't have to set IEXPLORE or MOZILLA, the installation should detect it, second, you want the prompt the browser to close unless you want to p*** off users.

i don't know of anything that'll force it except a winternals util like tskill.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
i found jre1.6.0_11.msi in my userprofile under Application Data\Sun\Java\jre1.6.0_11
I think this WAS in another thread.
Posted by: bigherrm 15 years ago
Senior Yellow Belt
0
Thanks for the info. I did find the msi and it works standalone, however when I try to put a transform on it it appears to install fine but the jre test page states the it is not installed properly. I am going to try some different configurations in the transform.
Posted by: turbokitty 15 years ago
6th Degree Black Belt
0
If you use the "/s" command, it won't close IE or prompt the user to close it.

I used this command:
jre-6u11-windows-i586-p-s.exe /s ADDLOCAL=ALL SYSTRAY=0 EULA=0 IEXPLORER=1 JAVAUPDATE=0 AUTOUPDATECHECK=0 JU=0 REBOOT=ReallySupress

But the auto update really only turns off if you switch some regkeys after it's installed.. so I used this vbscript:


Option Explicit
Dim ObjShell, objFso, InstallCommand
Dim strKeyPath, strValueName, strValue, oReg, strComputer

'*****Install JRE***********

Set ObjShell = Wscript.CreateObject("WScript.Shell")
Set objFso = CreateObject("Scripting.fileSystemObject")

InstallCommand = "C:\Progra~1\radiatemp\Java_RE_160_u11\jre-6u11-windows-i586-p-s.exe /s ADDLOCAL=ALL SYSTRAY=0 EULA=0 IEXPLORER=1 JAVAUPDATE=0 AUTOUPDATECHECK=0 JU=0 REBOOT=ReallySupress"
objShell.Run InstallCommand,,TRUE


'*****Turn off autoupdates*************

Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\JavaSoft\Java Update\Policy"
strValueName = "EnableJavaUpdate"
strValue = "00000000"
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

strValueName = "NotifyDownload"
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

strValueName = "NotifyInstall"
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

Posted by: anonymous_9363 15 years ago
Red Belt
0
the auto update really only turns off if you switch some regkeys after it's installed.. so I used this vbscript:...with no check to see if the install actually worked or not or whether the values got written or not. Perhaps the error-checking code has been removed for clarity? :)

I can't keep saying often enough that ANY script, no matter how simple, should assume NOTHING. Check that your objects got created, check that a file copy operation succeeded before trying to do something to the target file, etc., etc. There's a really useful routine called BugAssert built in to some of MS's scripts which makes such error-trapping simple, removing the need for tons of "If Err.Number <> 0 Then" constructs. Find it and add it to all your scripts.

Lecture over...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ