Forum Discussion
RameshRK
Jun 05, 2023Copper Contributor
JRE installation during OSD
Hi All
I am working on Task Sequence and have a task to install JRE (32 and 64 bit).
.exe file is being used to do the installation, following is the vb script being used. The installation does happen without any issue, but it takes 10-14 minutes.
set objShell = CreateObject("WScript.shell")
javaArr = Array("jre-8u321-windows-x64.exe","jre-8u321-windows-i586.exe")
For j = 0 to 1 Step 1
installApp = "cmd /c " & javaArr(j) & " /s /L C:\Windows\Temp\O" & javaArr(j) & "_Install.log"
i = 0
i = objShell.Run(installApp, 1, True)
'Wscript.Echo "Exit Code for " & javaArr(j) & " : "& (i)
Next
Wscript.Quit(i)
Set objShell = Nothing
I tested the script by executing manually, the installation gets over in 2-3 mins.
Then tried to split the JRE installation with different program for 32 and 64 bit; but improvement. Below is the SMSTS log snippet for the 64bit installation
Invoking Execution Manager to install software InstallSoftware 6/5/2023 3:54:32 PM 6136 (0x17F8)
Installing software for PackageID='H0100169' ProgramID='Install-x64' AdvertID='H01200D5' has started, jobID='{CB0D98B7-456D-4337-B5FB-C537263D7CBC}' InstallSoftware 6/5/2023 3:54:32 PM 6136 (0x17F8)
Setting TSEnv variable 'SMSTSInstallSoftwareJobID_H0100169_H01200D5_Install-x64'='{CB0D98B7-456D-4337-B5FB-C537263D7CBC}' InstallSoftware 6/5/2023 3:54:32 PM 6136 (0x17F8)
Waiting for installation job to complete.. InstallSoftware 6/5/2023 3:54:32 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:55:02 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:55:32 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:56:02 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:56:32 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:57:03 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:57:33 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:58:03 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:58:33 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:59:03 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 3:59:33 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 4:00:03 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 4:00:33 PM 6136 (0x17F8)
Waiting for job status notification... InstallSoftware 6/5/2023 4:01:03 PM 6136 (0x17F8)
Launching command shell. TSProgressUI.exe 6/5/2023 4:01:03 PM 5712 (0x1650)
Windows station: WinSta0 TSProgressUI.exe 6/5/2023 4:01:03 PM 5712 (0x1650)
Desktop: Default TSProgressUI.exe 6/5/2023 4:01:03 PM 5712 (0x1650)
starting: C:\WINDOWS\system32\cmd.exe /k TSProgressUI.exe 6/5/2023 4:01:03 PM 5712 (0x1650)
completed: C:\WINDOWS\system32\cmd.exe /k TSProgressUI.exe 6/5/2023 4:01:03 PM 5712 (0x1650)
CompleteExecution received InstallSoftware 6/5/2023 4:01:30 PM 1496 (0x05D8)
CompleteExecution processed InstallSoftware 6/5/2023 4:01:30 PM 1496 (0x05D8)
Received job completion notification from Execution Manager InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Installation completed with exit code 0x00000000 InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Install successful InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Setting TSEnv variable 'SMSTSInstallSoftwareJobID_H0100169_H01200D5_Install-x64'='' InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
GetExecRequestMgrInterface successful InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Releasing job request, jobID='{CB0D98B7-456D-4337-B5FB-C537263D7CBC}' InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Releasing of Job Request successful InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
CompleteJob successful InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
ReleaseSource() for C:\_SMSTaskSequence\Packages\H0100169. InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
reference count 1 for the source C:\_SMSTaskSequence\Packages\H0100169 before releasing InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Released the resolved source C:\_SMSTaskSequence\Packages\H0100169 InstallSoftware 6/5/2023 4:01:30 PM 6136 (0x17F8)
Process completed with exit code 0 TSManager 6/5/2023 4:01:30 PM 5892 (0x1704)
!--------------------------------------------------------------------------------------------! TSManager 6/5/2023 4:01:30 PM 5892 (0x1704)
Successfully completed the action (OJava-8u321_x64) with the exit win32 code 0 TSManager 6/5/2023 4:01:30 PM 5892 (0x1704)
Kindly advice if there is way to fine tune this.
Thank you
1 Reply
No RepliesBe the first to reply