Archive: How to delete 0-byte registry keys?


How to delete 0-byte registry keys?
NSIS is working via API and cant do that.
in regular i use this tool
http://www.codeproject.com/tools/NtRegEdit.asp
but thats a bit complicated to implement for a special portable programm ;)

erm - RegDelNull ist close but not specific enough

http://www.microsoft.com/technet/sys...egDelNull.mspx

@echo y|regdelnull <path> -s

(the echo confirms founds with Y and delete entries without confirmation)

would be nice to have that within NSIS.

or is the registry plugin capable to do this?
http://nsis.sourceforge.net/Registry_plugin


You can't even create such a key with the win32 api, you have use the NT api. And this sysinternals tools is more of a proof of consept than anything else. Other than a rootkit, what kind of app would create such a key?


>> what kind of app would create such a key?

Shareware - to protect registration!?
i would not ask if i know a solution inside NSIS.

read the first link again to understand...