Old 2nd April 2001, 07:18   #1
hochwimmer
Junior Member
 
Join Date: Apr 2001
Posts: 2
Hi,

Just wondering if there is a way to make the DeleteRegKey command delete the specified key and everything underneath it. I'm using 1.2 beta and it seems it only deletes a key if it has no "children" keys.

Perhaps I'm missing something?

Thanks in advance...
hochwimmer is offline   Reply With Quote
Old 2nd April 2001, 20:54   #2
Koen van de Sande
Senior Member
 
Join Date: Mar 2001
Location: Holland
Posts: 269
Such a function is dangerous!

If you were to use such a function, it can have very dangerous side-effects... Imagine using it on HKEY_LOCAL_MACHINE\Software... You'd wipe out almost the entire registry. I'm not sure if you'd want such a function.

Koen van de Sande
Van de Sande Productions
TibEd.net | VPatch
Koen van de Sande is offline   Reply With Quote
Old 2nd April 2001, 22:22   #3
jarsonic
Major Dude
 
jarsonic's Avatar
 
Join Date: Aug 2000
Location: Charlottesville, VA
Posts: 1,113
Send a message via AIM to jarsonic
Seriously.
I can just imagine it: "NSIS, a new breed of computer virus."
Don't want that.

- Jarsonic
jarsonic is offline   Reply With Quote
Old 2nd April 2001, 22:44   #4
hochwimmer
Junior Member
 
Join Date: Apr 2001
Posts: 2
Ok I didn't think of the potential for havoc. Thanks for pointing it out.

I'm was just being lazy with a bunch of keys that store component positions in a Delphi app. Got round it by deleting the appropriately keys from the bottom of the tree up.



hochwimmer 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