Benjamin.Lavalley@kaseya.comI'm not exactly sure if you'd need both the 32-bit and 64-bit Java versions to account for 32-bit browsers on a 64-bit OS, either. If anyone has any answers on that feel free to comment
Script Name: Java6u15 - (32 bit) - Step 1 Script Description: Install Java 6 Update 15 Benjamin Lavalley, Sr. Sales Engineer, Kaseya benjamin.lavalley@kaseya.com ***EDITED BY Charles Surrett, Convergence Networks*** IF Test Registry Key Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_15 Absent : THEN Get URL Parameter 1 : http://javadl.sun.com/webapps/download/AutoDL?BundleId=32800&/jre-6u15-windows-i586.exe Parameter 2 : #vAgentConfiguration.AgentTempDir#\jre-6u15-windows-i586.exe Parameter 3 : 3 OS Type : 13 Close Application Parameter 1 : iexplore.exe OS Type : 13 Execute Shell Command Parameter 1 : "#vAgentConfiguration.AgentTempDir#\jre-6u15-windows-i586.exe" /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 Parameter 2 : 1 OS Type : 13 Write Script Log Entry Parameter 1 : Java 6 Update 15 installed for x86. OS Type : 13 Execute Script Parameter 1 : Java6u15 x64 Check - Step 2a (NOTE: Script reference is NOT imported. Correct manually in script editor. Parameter 2 : Parameter 3 : 0 OS Type : 13 ELSE Write Script Log Entry Parameter 1 : Java 6 update 15 already installed. OS Type : 13
Script Name: Java6u15 x64 Check - Step 2a Script Description: Install Java 6 Update 15. Determine OS type then install appropriate Java version. Benjamin Lavalley, Sr. Sales Engineer, Kaseya benjamin.lavalley@kaseya.com ***EDITED BY Charles Surrett, Convergence Networks*** IF Check Registry Value Parameter 1 : HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\Identifier Contains :x86 THEN Write Script Log Entry Parameter 1 : 64-Bit OS Not Found OS Type : 0 ELSE Execute Script Parameter 1 : Java6u15 - (64 bit) - Step 2b (NOTE: Script reference is NOT imported. Correct manually in script editor. Parameter 2 : Parameter 3 : 0 OS Type : 13
Script Name: Java6u15 - (64 bit) - Step 2b Script Description: Install Java 6 Update 15 Benjamin Lavalley, Sr. Sales Engineer, Kaseya benjamin.lavalley@kaseya.com ***EDITED BY Charles Surrett, Convergence Networks*** IF Test Registry Key Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6.0_15 Absent : THEN Get URL Parameter 1 : http://javadl.sun.com/webapps/download/AutoDL?BundleId=32802&/jre-6u15-windows-x64.exe Parameter 2 : #vAgentConfiguration.AgentTempDir#\jre-6u15-windows-x64.exe Parameter 3 : 3 OS Type : 13 Close Application Parameter 1 : iexplore.exe OS Type : 13 Execute Shell Command Parameter 1 : "#vAgentConfiguration.AgentTempDir#\jre-6u15-windows-x64.exe" /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 Parameter 2 : 1 OS Type : 13 Write Script Log Entry Parameter 1 : Java 6 Update 16 installed for x64. OS Type : 13 ELSE Write Script Log Entry Parameter 1 : Java 6 Update 15 already installed. OS Type : 13
Benjamin.Lavalley@kaseya.com To make a long story short, I had to manually package up the contents of the installer and they will be downloaded from our site and installed via msiexec.
Script Name: Java6u16 - (32 bit) - Step 1 Script Description: Install Java 6 Update 16 Benjamin Lavalley, Sr. Sales Engineer, Kaseya benjamin.lavalley@kaseya.com ***EDITED BY Charles Surrett, Convergence Networks*** ***Modified by Matt DeChicio, WingSwept Communications - added vbs script to close multiple ie windows, close jqs.exe (java quick start), removed call to jre 64bit version script*** IF Test Registry Key Parameter 1 : HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_16 Absent : THEN Get URL Parameter 1 : http://javadl.sun.com/webapps/download/AutoDL?BundleId=33889&/ Parameter 2 : #vAgentConfiguration.AgentTempDir#\jre-6u16-windows-i586.exe Parameter 3 : 3 OS Type : 13 Close Application Parameter 1 : jqs.exe OS Type : 13 Write File Parameter 1 : #vAgentConfiguration.AgentTempDir#\close_ie.vbs Parameter 2 : VSASharedFiles\close_ie.vbs OS Type : 13 Execute File Parameter 1 : %windir%\system32\cscript.exe Parameter 2 : #vAgentConfiguration.AgentTempDir#\close_ie.vbs Parameter 3 : 3 OS Type : 13 Execute Shell Command Parameter 1 : "#vAgentConfiguration.AgentTempDir#\jre-6u16-windows-i586.exe" /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 Parameter 2 : 1 OS Type : 13 Write Script Log Entry Parameter 1 : Java 6 Update 16 installed for x86. OS Type : 13 ELSE Write Script Log Entry Parameter 1 : Java 6 update 16 already installed. OS Type : 13
Option Explicit Dim objProcesses, objProcess Set objProcesses = GetObject("WinMgmts:root/CIMV2").ExecQuery( _ "SELECT * FROM Win32_Process WHERE Name='iexplore.exe'") For Each objProcess In objProcesses objProcess.Terminate Next