tmakruck Posted March 7, 2006 Share Posted March 7, 2006 So i've been tasked with dertermining if the correct version of IE and applicable service packs have been installed on a huge group of machines. This is a custom version of IE, so I don't think that just using FileGetVersion ("iexplore.exe") will work. Our version of IE has an additional "CO" at the end of the version number, when you look at the Help-About window. (See the attached file) Also, I need to get the "update versions" line, and make sure SP1 is in the text. Unfortunately, the window is a "Internet Explorer_TridentDlgFrame" , and all the text is in an "Internet Explorer_Server" control. I tried using the IE UDF to do some checking on it, but the data on the window is not being recognized as an HTML Document, so the IE UDFs arent working. for example If WinExists ( "About Internet Explorer" ) THen MsgBox ( 0 , "" , "It Exists" ) Else MsgBox ( 0 , "" , "It DONT Exists" ) EndIf $o_HelpWindow = _IEAttach ( "About Internet Explorer" ) MsgBox ( 0 , "@error" , @error ) Running this code when the about window is up Yields a MsgBox saying "It exists" then the msgbox @error = 1. Any help would be greatly appreciated! - Todd Link to comment Share on other sites More sharing options...
Joon Posted March 7, 2006 Share Posted March 7, 2006 Search Under this registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer Link to comment Share on other sites More sharing options...
tmakruck Posted March 7, 2006 Author Share Posted March 7, 2006 Search Under this registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet ExplorerThe version info, including the customized version details are available in this hive. Thanks Joon. I never thought to look in the reg. That may be a way for me to check on the SP number as well!- Todd Link to comment Share on other sites More sharing options...
tmakruck Posted March 7, 2006 Author Share Posted March 7, 2006 (edited) Problem Resolved So i've been tasked with dertermining if the correct version of IE and applicable service packs have been installed on a huge group of machines. This is a custom version of IE, so I don't think that just using FileGetVersion ("iexplore.exe") will work...... This has been resolved. I Used the following for checking the version number $strIEVersion = RegRead ( "HKLM\SOFTWARE\Microsoft\Internet Explorer" , "Version" ) if $strIEVersion = "" Then Select Case @Error = 1 MsgBox ( 16 , "AutoIt Error" , "unable to open requested key" ) Case @Error = -1 MsgBox ( 16 , "AutoIt Error" , "Unable to open requested value" ) Case @Error = -2 MsgBox ( 16 , "AutoIt Error" , "Value type not supported" ) Case Else MsgBox ( 64 , "AutoIt Information" , "Version number is blank!" ) EndSelect EndIf $strIECustomizedVersion = RegRead ( "HKLM\SOFTWARE\Microsoft\Internet Explorer" , "CustomizedVersion" ) if $strIECustomizedVersion = "" Then Select Case @Error = 1 MsgBox ( 16 , "AutoIt Error" , "unable to open requested key" ) Case @Error = -1 MsgBox ( 16 , "AutoIt Error" , "Unable to open requested value" ) Case @Error = -2 MsgBox ( 16 , "AutoIt Error" , "Value type not supported" ) Case Else MsgBox ( 64 , "AutoIt Information" , "Customized Version is blank!" ) EndSelect EndIf MsgBox ( 0 , "IE Complete Version" , $strIEVersion & $strIECustomizedVersion ) and the following for checking for the service pack $strIE60SP1 = RegRead ( "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "MinorVersion" ) if $strIE60SP1 = "" Then Select Case @Error = 1 MsgBox ( 16 , "AutoIt Error" , "unable to open requested key - True Error" ) Case @Error = -1 MsgBox ( 64 , "AutoIt Information" , "Unable to open requested value" ) Case @Error = -2 MsgBox ( 16 , "AutoIt Error" , "Value type not supported" ) Case Else MsgBox ( 64 , "AutoIt Information" , "Minor Version is blank!" ) EndSelect EndIf If StringInStr ( $strIE60SP1 , ";SP1;" ) Then MsgBox ( 0 , "Service Pack" , "Passed" ) Else MsgBox ( 16 , "Service Pack" , "Failed" ) EndIf Edited March 7, 2006 by tmakruck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now