How to remove the registry value?

How to remove the registry value? I tried to add a flag deletevalueto my record [Registry], but after completing the setting, the value will be recreated.

Can someone show me how to remove the registry value?

+3
source share
1 answer

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;
+3
source

All Articles