Windows 7........a long time ago but, from memory, I would say reinstall avast and then remove it with their dedicated tool.
Using the Avast Uninstall Tool | Official Avast Support
Hi, and welcome to Sysnative Forums. For a better response, please follow the instructions here >> Blue Screen of Death (BSOD) Posting Instructions - Windows 10, 8.1, 8, 7 + Vista