QUOTE (dfnkt @ Jun 19 2008, 09:31 AM)

Yes crahak thank you, i tested your code and it does just what I need! I was also able to see the syntax of the "if and then" and modify what I had to work as well. With the script i posted in my last post, how can I fix the integer problem you talk about.
Well, if you did that, you'd be left with a script that's basically identical to mine. The only real differences, are the messages. Here's the same script again, with your new messages
CODE
const HKLM = &H80000002
strComputer = "."
Set objWMI=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Internet Explorer"
strValueName = "Version"
objWMI.GetStringValue HKLM, strKeyPath,strValueName,strValue
intIEVers = CInt(Left(strValue, InStr(strValue, ".")-1))
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
For each elem in colItems
intSP = elem.ServicePackMajorVersion
Next
if intIEVers < 7 and intSP = 3 then
msgbox "IE 7 not found! Service Pack 3 Found! No further action is needed."
elseif intIEVers < 7 and intSP < 3 then
msgbox "IE 7 not found! Service Pack 3 not found! Please install Service Pack 3."
elseif intIEVers > 6 and intSP < 3 then
msgbox "IE 7 found! Service Pack 3 NOT found! Please go to Control Panel>Add/Remove Programs and remove Internet Explorer 7 and then install Service Pack 3."
elseif intIEVers > 6 and intSP = 3 then
msgbox "IE 7 and Service Pack 3 were found. You need to go to Control Panel>Add/Remove Programs and remove Service Pack 3 before you can remove Internet Explorer 7. Once completed, reinstall Service Pack 3."
else
msgbox "Unable to determine configuration."
end if
(also removed the line with blnBadIEVers -- had no use for it, went for actual version checks instead of using the boolean for the conditional statements)
@jaclaz: totally. At a VERY strict minimum, it should work on IE as well as Firefox (that's at least 90% of users out there), but when you have it working on IE and FF, usually there's very little extra work required to test (and make updates) for Opera, Konqueror, Safari (for those poor guys with
fruity computers

) and others. Usually that means standard compliant markup (that works with FF, Opera and all the others), and a IE-specific style sheet or such. I've been a permanent Firefox user for YEARS too (secure, fast, and all them GREAT extensions: the web dev toolbar, firebug, DOM inspector, etc etc)
Anything IE 6 - only is single-platform/windows-only, and even limiting which version of windows can use it (windows only, but even then not all versions!). And that prevents you from updating to a not as sucky version of that browser for your other needs -- you're just stuck with an older version the poorest browser there is (IMO)
Edit: oops, just noticed quoting my posts or copy/pasting from them removed backslashes, very strange... Fixed!