The problem isn’t Avast. The problem is properly removing your prior AV before you install a new one.