Old 1st September 2007, 09:17   #1
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
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

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 1st September 2007, 12:42   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
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?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 1st September 2007, 12:52   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
>> 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...

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump