Fix: Can’t delete Avast Software Registry Key in Windows

Last week when I installed CCleaner on my system, it also installed Avast antivirus software stealthily, in the background. After I uninstalled Avast, a registry key named AVAST Software still remained in the registry, but it couldn’t be opened. When the AVAST Software branch was selected, it threw the following error:

Error Opening Key

AVAST Software cannot be opened.
An error is preventing this key from being opened.
Details: The system cannot find the file specified.

delete avast software registry key

When I opened the Properties of the AVAST Software key, the Security tab was blank, showing the message: The requested security information is either unavailable or can’t be displayed.

delete avast software registry key

I tried running Sysinternals RegDelNull and Malwarebytes RegAssassin to nuke the keys, and they didn’t help.

Registry Reparse Point

Later I realized that the HKEY_LOCAL_MACHINE\Software\AVAST Software is a reparse point or registry link that links to the following key on Windows 64-bit systems:

HKEY_LOCAL_MACHINE\Software\WOW6432Node\AVAST Software

But, since the Avast uninstaller had wiped out the above key, the reparse point still remains but is orphaned.

On Windows 32-bit systems, the reparse point and the target key paths are reversed.

However, once I knew it’s only a reparse point, the fix turned out to be very simple; you don’t need to tinker with the registry key permissions.

Fix: Can’t delete Avast Software Registry Key

Method 1: Create AVAST Software key under WOW6432Node manually

To successfully remove the AVAST Software reparse point, first, manually create the missing target key. Follow these steps:

  1. Start the Registry Editor (regedit.exe)
  2. Create the AVAST Software key under the WOW6432Node key below.
    HKEY_LOCAL_MACHINE\Software\WOW6432Node\

    Alternately, run the following command from an admin Command Prompt window to create the key manually on a Windows 64-bit system:

    reg add "HKLM\Software\AVAST Software" /reg:32
  3. Then, go to the following key in the Registry Editor and delete it:
    HKEY_LOCAL_MACHINE\Software\AVAST Software

This deletes the linked key as well as the reparse point in one go.

Important Note: If, the WOW6432Node\AVAST Software key is the reparse point itself (32bit vs 64-bit Windows) which can’t be opened, and points to the key Software\AVAST Software, then you’ll need to create the target key (HKLM\Software\AVAST Software) key manually before deleting the reparse point.



Method 2: Use AvRegLink.exe from Avast Software

Avast software has a tool named AvRegLink.exe which can create, query or delete reparse points in the registry. This tool can be downloaded from the following URL:

http://public.avast.com/~hnanicek/AvRegLink.exe

Once downloaded, open admin Command Prompt and run the following command:

AvRegLink.exe delete "SOFTWARE\AVAST Software"

delete avast software registry key

If, the WOW6432Node\AVAST Software key is the reparse point itself (32bit vs 64-bit Windows), which points to the key Software\AVAST Software, then you’ll need to run this command instead:

AvRegLink.exe delete "SOFTWARE\WOW6432Node\AVAST Software"

Additional Tips:

Before deleting the reparse point, if you want to query the reparse point to know where it’s pointing to, use this command-line:

AvRegLink.exe query "SOFTWARE\AVAST Software"
AvRegLink.exe query "SOFTWARE\WOW6432Node\AVAST Software"

To create a reparse point manually, use this command-line syntax:

AvRegLink.exe create LinkKey TargetKey

You may also use regln: Windows Registry Linking Utility to create or delete reparse points in the registry.

That’s it! This deletes the AVAST Software registry key from the HKEY_LOCAL_MACHINE\Software or the HKEY_LOCAL_MACHINE\WOW6432Node\Software registry locations.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

Leave a Comment