'ManageEngine Desktop Central Agent . '************************************ 'Script to check IE8 is installed or not '---------------------------------------- 'Return Codes : '-------------- ' 0 . Either the version is not available or other than IE 8 is installed ' 80 . IE8 is already installed . '========================================================================================================== On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") returnValue = 0 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" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\" else if checkOSArch = "x86" Then Wscript.Echo "The OS Architecture is 32 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\" else Wscript.Echo "The OS Architecture is 64 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\" End IF End If version = WshShell.RegRead(regkey & "Version") if Err Then Err.Clear WScript.Echo "Internet Explorer is not installed" Wscript.Quit returnValue else Wscript.Echo "The Internet Explorer is installed and the version is" Wscript.Echo version returnValue = InStr(version, "8") Wscript.Echo returnValue if returnValue = 1 Then Wscript.Echo "The Internet Explorer 8 is already installed" returnValue = 80 else Wscript.Echo "The other version of Internet Explorer is already installed" returnValue = 0 End If Wscript.Echo returnValue End If Wscript.Quit returnValue