'ManageEngine Desktop Central Agent 'Script to deploy QuickTime setup '================================ Set WshShell = WScript.CreateObject("WScript.Shell") 'Get the Agent Installed directory from the Registry location details '==================================================================== Err.Clear checkOSArch = WshShell.RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE") Wscript.Echo checkOSArch if Err Then Err.Clear WScript.Echo "The OS Architecture is unable to find ,so it was assumed to be 32 bit" checkOSArch = "x86" else if checkOSArch = "x86" Then Wscript.Echo "The OS Architecture is 32 bit" exeString = "redist\vcredist_x86.exe /q" else Wscript.Echo "The OS Architecture is 64 bit" exeString = "redist\vcredist_x64.exe /q" End IF End If WScript.Echo exeString returnValue =WshShell.Run(exeString,0,TRUE) if returnValue <> 0 Then WScript.Echo "Installation is failed" else WScript.Echo "Installation of the LibO_3.3.1_Win_x86_install_multi is Success" End If Wscript.Quit returnValue