Code:
 

; Microsoft Security Bulletin MS04-013
; Cumulative Security Update for Outlook Express (837009)
; for Microsoft Outlook Express 6 SP1
; http://www.microsoft.com/technet/security/bulletin/MS04-013.mspx
;

$OEDir = readvalue($HKLMSMWCV+'\App Paths\msimn.exe','')
$OEVer = getfileversion(expandenvironmentvars($OEDir))
$KB837009 = readvalue('HKLM\Software\Microsoft\Active Setup\Installed Components\{2cc9d512-6db6-4f1c-8979-9a41fae88de0}','IsInstalled')
if (not $KB837009 = 1 or @error)
select
case $OEVer => '6.00.2800.1106' $file = 'OE6.0sp1-KB837009-x86-ENU.exe'
case $OEVer => '6.00.2600.0000' $file = 'OE6.0-KB837009.exe'
case $OEVer => '5.00.3502.1000' $file = 'OE5.5sp2-KB837009.exe'
endselect
shell $setup+'\KB837009\'+$file+' /q:a /r:n'
endif



the filenames have been changed to keep them unique
script also assumes users have local admin


Edited by Radimus (2004-04-20 07:21 PM)
_________________________
How to ask questions the smart way <-----------> Before you ask