First and foremost I'd say don't (re)install Avast. But that is strictly my opinion.
The advice I will give you is precisely the same as anyone dealing with the uninstallation and reinstallation of any software:
First try using the uninstaller that came with said software. That is generally all you are going to need to do.
In the case of an antivirus/security suite, if the uninstaller gives you an error, virtually all of the makers of said software have dedicated "problem uninstallers" for exactly this instance. Go to the maker's support pages and search for "remover" or similar if you need one, but only if you need one.
After you have a successful uninstall using one of the two above techniques, reinstall.
You should never, ever, ever, need to edit the registry by hand to uninstall software.
If you should find yourself in a case where both of the above usual techniques did not work, then, and only then, would I consider using a dedicated third party "forceful uninstaller" tool such as Revo Uninstaller. I can count on less than two hands the total number of times this has been necessary since I've been in IT starting in the early 1980s.