I'm at my wit's end on this one. Since the latest update, Avast does not run at all. It gives various errors when I try to run its components manually. At first, it couldn't find vcruntime140_1.dll. After using avastclear.exe and reinstalling in safe mode still gave the error, I did some searching and found that a lot of old version files and folders were still on my computer in system folders and the registry. I deleted all I could find and used CCleaner to fix the registry. That fixed the missing dll error, but new "Side By Side Errors" took its place. I learned that these are usually caused by missing or corrupted Microsoft Visual C++ packages, so I uninstalled and reinstalled the entire suite of C++ versions, to no avail.
An example error as seen in Event Viewer is:
Activation context generation failed for "C:\Program Files\Avast Software\Avast\Aavm4h.dll".Error in manifest or policy file "C:\Program Files\Avast Software\Avast\Avast.VC140.CRT\Avast.VC140.CRT.MANIFEST" on line 4. Component identity found in manifest does not match the identity of the component requested. Reference is Avast.VC140.CRT,processorArchitecture="amd64",publicKeyToken="fcc99ee6193ebbca",type="win32",version="14.0.24210.0". Definition is Avast.VC140.CRT,processorArchitecture="amd64",publicKeyToken="fcc99ee6193ebbca",type="win32",version="14.0.23918.0". Please use sxstrace.exe for detailed diagnosis.
I tried manually changing the manifest file version in notepad to match the other version, but predictably that didn't work, although it got rid of this particular error message.
Another error I got was
Activation context generation failed for "C:\Program Files\Avast Software\Avast\AvastUI.exe".Error in manifest or policy file "" on line . A component version required by the application conflicts with another component version already active. Conflicting components are:. Component 1: C:\Program Files\Avast Software\Avast\Avast.VC140.CRT\Avast.VC140.CRT.MANIFEST. Component 2: C:\Program Files\Avast Software\Avast\Avast.VC140.CRT\Avast.VC140.CRT.MANIFEST.
I don't know what's going on here. The problems persist through repairs and reinstalls. If I use the online installer, it doesn't even finish installing, the installer just stops and disappears without warning halfway through. The offline installer lets me finish installation(only giving an error message at the time the online installer quits completely) but the program never runs.
Malwarebytes doesn't report any issues. I'll install a different antivirus for now and see if it can find anything. But I honestly think it was just the update in the start of June that broke something. I didn't restart my computer after the update until weeks later, which could have helped things go wrong. If anyone knows of a utility that actually completely removes all trace of Avast, please let me know, because I think that might be a fix since the errors complain of mismatched settings and I suspect old version data is causing problems somehow.