The things Keyexist() returns is changed in oppostition to old Existkey() (3.6X), to the best imho ..

SO finally : if there is a key 'Avg.Kernel' found i presume there is no need to install the package anymore , no ?

Assuming this to be true I would treat it like this (for readability's sake [Big Grin] )

code:
if not keyexist("HKEY_CLASSES_ROOT\Avg.kernel") ;key isn't found
? "installing Avg ..."
$avg=@SCRIPTDIR+"\avg.exe"
shell "$avg.exe /s"
endif

hth

Jochen

[ 23 April 2002, 16:38: Message edited by: jpols ]
_________________________