Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Registry Functions
#1
How do you delete a registry key?

For example, I want to delete "settings" under "Sofware\Gindi\QM2"

I am not saying I will delete that key, just and example, since there are no subkeys Tongue

Thank you!!!!
#2
Code:
Copy      Help
rset "" "keytodelete" "software\gindi\qm2\user\parentkey" 0 -2


In older QM versions it would not delete keys containing subkeys (bug). You can use this instead:
Code:
Copy      Help
;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.
#3
PURRRRRRRRRRRRFECT!!!!!!!!!!

TY TY TY YOUR HIGHNESS!!!!!!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)