Please post code enclosed within CODE tags (see Instant UBB Code). This will enable you to post parentheses.
Secondly, are you running the script under local administrative rights?
With regards to the code pieces. The READVALUE migth return a string variables instead of a integer, then tthe folowing line will fail. So, update the code to code:
$PatchInstalled = VAL(READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Active Setup\Installed Components\{D7B44F3E-77D3-44C5-8E03-4222D9A18B7B}",
"IsInstalled"))
Scrap this, I updated the complete code a little bit, give it a try but run it under admin privileges.
code:
$IEVersion=ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InternetExplorer","Version")
if $IEVersion = "5.50.4807.2300"
$PatchInstalled = VAL(READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Active Setup\Installed Components\{D7B44F3E-77D3-44C5-8E03-4222D9A18B7B}"
,"IsInstalled")
If $PatchInstalled < 1
$selection = Messagebox('Windows has determined that you need the Lastest
IE Security Patch. This will take less than 1 minute to install.
Please restart your machine when you are asked. Thank You! Press OK to Continue',
"Internet Explorer Patch Security Patch Q321232",48)
SHELL "%COMSPEC% /c /e:1024 \\EB0Q2\Programs\IE55\q321232.exe -q"
else
$selection = Messagebox('This is to let you know that you already have the latest
IE Security Patch. Press OK to Continue',"Internet Explorer Patch
Security Patch Q321232",48)
endif
endif
[ 11 June 2002, 21:31: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.