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
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)
Please log in to answer
Posted by:
aogilmor
15 years ago
Posted by:
aogilmor
15 years ago
Posted by:
bigherrm
15 years ago
Posted by:
turbokitty
15 years ago
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:
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
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.
so that the conversation will remain readable.