I'm using this example
- Code: Select all
with RegistrySecurity(HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_DMLOAD) do
begin
ProtectedDAcl := false;
DAcl.SetFileAccess(Everyone, True);
if DAcl.DeleteItems(Everyone) then
ShowMessage('OK')
else
ShowMessage('NOT OK');
end;
But only modifying this permission and not deleting my key..
I'll use some to clean some keys after uninstall my program