If checking for the Value "Name" and not the Value "Data", then something like this should work:

Code:
break on

If ReadValue('HKEY_CURRENT_USER\Software\KiXtart','foo') <> ''
$rc = DelKey('HKEY_CURRENT_USER\Software\KiXtart\New Key')
EndIf



Edited by Les (2004-08-04 07:15 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.