Use avast uninstall utility :http://www.avast.com/uninstall-utility
If it doesn’t run, use it in safe mode.

You may or may not install avast again.

If you do update to vista sp2 (before reinstallation) and the problem will go away on surface. Microsoft’s diagnostic tools will still show errors that keep updating though.