11-05-2006, 09:06 AM
In older QM versions it would not delete keys containing subkeys (bug). You can use this instead:
;does not use rset due to a bug in QM <= 2.1.8.4
dll shlwapi #SHDeleteKey hkey $pszSubKey
if(!RegOpenKeyEx(HKEY_CURRENT_USER "software\gindi\qm2\user\parentkey" 0 0x10000 &hk))
,SHDeleteKey hk "keytodelete"
,RegCloseKey hk
Note that with RegOpenKeyEx is used parent key, and with SHDeleteKey is used key that will be deleted.