I have some keys with no subkeys in the registry that I cannot delete with
the TRegistry.DeleteKey function or with the windows registry editor. I have
tried running some registry cleaning software but it does not manage to read
the keys. What can I do?
Pier
"Pier" wrote in message
news:47822e55@newsgroups.borland.com...
> I have some keys with no subkeys in the registry that I cannot
> delete with the TRegistry.DeleteKey function or with the windows
> registry editor. I have tried running some registry cleaning software
> but it does not manage to read the keys. What can I do?
Chances are that your user account simply does not have adequate rights to
those keys. That does not mean the Registry is corrupted. Have you tried
calling GetLastError() after DeleteKey() exits?
Gambit
Pier wrote:
> I have some keys with no subkeys in the registry that I cannot delete with
> the TRegistry.DeleteKey function or with the windows registry editor. I have
> tried running some registry cleaning software but it does not manage to read
> the keys. What can I do?
>
> Pier
Can you delete the parent key?
Try exporting the whole branch, delete the parent
of the corrupted key, then edit your export file
to remove the corrupted keys and re-import.
Obviously this may corrupt your entire system...!
Cheers,
Chris