Old 7th December 2010, 12:15   #1
abcdgoldfish
Junior Member
 
Join Date: Jan 2009
Posts: 35
DeleteRegKey in Win7

I want to delete a registry key in Win7 but NSIS always looks in the Wow6432Node hive. For example if I have the following keys:
HKLM "Software\Product\badKey"
HKLM "Software\Wow6432Node\Product\badKey"

The following will remove HKLM "Software\Wow6432Node\Product\badKey":
DeleteRegKey HKLM "SOFTWARE\Product\badKey"
DeleteRegKey HKLM "SOFTWARE\Wow6432Node\Product\badKey"

Neither removes HKLM "Software\Product\badKey", which is the key I want to delete.

I have RequestExecutionLevel admin in my script. Without this no keys are deleted.

Why can't the script delete this key? Adding a backslash at the end of the key string doesn't help either, i.e., "Software\Product\badKey\".

I'd appreciate any help.
abcdgoldfish is offline   Reply With Quote
Old 7th December 2010, 14:02   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
SetRegView?
Yathosho is offline   Reply With Quote
Old 7th December 2010, 15:09   #3
abcdgoldfish
Junior Member
 
Join Date: Jan 2009
Posts: 35
Perfect! You have saved my bacon. Thanks.

Now that I see how close SetRegView (4.9.7.6) was to DeleteRegKey (4.9.2.3) in the NSIS User Manual, it sure would have saved me time and anguish if the manual had reference links. Otherwise it's hard to find things that you don't even know you should be looking for.

Not being an ingrate. Just looking for ways to improve the awesomeness that is NSIS.
abcdgoldfish is offline   Reply With Quote
Old 7th December 2010, 16:17   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You are welcome to submitting a patch.

Stu
Afrow UK 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