I found a solution in this question . Except for use deletevalue, I need to specify a value nonefor the parameter of ValueTypemy record [Registry]. So something like this:
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows NT\CurrentVersion\Audit"; ValueName: "MyValueName"; ValueType: none; Flags: deletevalue;
source
share