![]() |
#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. |
![]() |
![]() |
![]() |
#2 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
|
![]() |
![]() |
![]() |
#3 |
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. |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You are welcome to submitting a patch.
Stu |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|