Prev Previous Post   Next Post Next
Old 7th December 2010, 11:15   #1
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
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