objc
Posts: 6
Joined: Wed Oct 07, 2020 5:46 am

Registry key not being removed as directed

Sun Jan 10, 2021 5:54 am

I am trying to remove some registry keys upon install, such as this one:

Code: Select all

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
It is not being removed. I have the "Remove this key with all of its ..." option checked in Properties for this key. Is there something else I need to do?

Note that this is a standard key that comes with a fresh Windows installation.

When I select the portion of the registry tree I want to remove and click Export Reg, below is the code that is generated. It's not removing the keys themselves like it should.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
@=""

... etc

Catalin
Posts: 4404
Joined: Wed Jun 13, 2018 7:49 am

Re: Registry key not being removed as directed

Wed Jan 13, 2021 6:28 pm

Hello,

If that is a standard registry key, I am assuming that you did proceed as it follows:

- manually create the registry key in "Registry" page

- set the "Remove this key with all of its values and subkeys" option from the "Operations" tab

If that is the case, please make sure that:

- the specified component is uninstalled (assuming that you delete this on a component uninstall)

- the condition is evaluated as true

In addition to the above, we also need to pay attention to registry redirection here.

For instance, if your setup is a 32-bit setup and the install/uninstall takes place on 64-bit machine, the setup will try to remove the registry located at:

HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}

rather than the registry located at:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”