How many administrator accounts do you have in this computer, I mean, accounts with admin rights?
Did you install avast from the scratch, creating avast folder (and not using an existing folder to install it)?
Did you run
Avast Uninstall tool for complete uninstallation?
Which Windows are you using?