'ManageEngine Desktop Central 'Script to install Adobe Acrobat XI pro '====================================================== on error resume next 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") returnValue = 0 '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" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\DesktopCentral\DCAgent" else if checkOSArch = "x86" Then 'Wscript.Echo "The OS Architecture is 32 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\DesktopCentral\DCAgent" else 'Wscript.Echo "The OS Architecture is 64 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AdventNet\DesktopCentral\DCAgent" End IF End If agentDir = WshShell.RegRead(regkey & "\DCAgentInstallDir") 'WScript.Echo agentDir location = agentDir&"bin\7za.exe" 'WScript.Echo location 'Extraction of the Archive returnValue =WshShell.Run(Chr(34)& location &Chr(34)& " x -y "&WScript.Arguments.Item(0),0,TRUE) 'Once the extraction is sucess , install the pre-requisite and msi in the specific order '============================================================================== if returnValue <> 0 Then Wscript.Quit returnValue else WshShell.CurrentDirectory = ".\Adobe Acrobat XI" returnValue=WshShell.Run("Setup.exe /sALL /rs /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES", 0, TRUE) end if Wscript.Quit returnValue