there are a few UDFs in here, but they are easy to get from the UDF lib

Code:

;************************************ XP HotFix Updates *****************************************
$arrkey = arrEnumKey('HKLM\SOFTWARE\Microsoft\Updates\Windows XP\SP3')
$arrdir = FileList($setup+'\Hotfixes\WinXP','.exe',1)
$MaxSize= 500000
if not @error
$reboot = 0
for each $dir in $arrdir
$installed = 0
$parsed = split($dir,'-')[1]
for each $key in $arrkey
if $key = $parsed $installed = 1 endif
next
if not $installed
if (@ras and GETFILESIZE($dir) < $MaxSize) or not @ras
$=sendmessage(@wksta,"A CRTICAL upgrade is now starting. "+
"Your computer will restart on it's own in about 2-3 minutes. Please do not open any programs. "+
"There is no need to click the OK button.")
? color c+/n ' Installing Security Update '+$parsed
shell '%comspec% /c ' + $dir + ' /passive /norestart'
$reboot = 1
endif
endif
next
if $reboot
ShutDown ('', 'Updates have been applied that require your computer to restart', 5, 1, 1)
quit
endif
endif

_________________________
How to ask questions the smart way <-----------> Before you ask