What antivirus did you have prior to Avast? Did you use the previous antivirus uninstaller utility/removal tool? What version of Avast are you trying to install?
Run this in safe mode avast uninstall utility. After that run this in normal mode http://rejzor.wordpress.com/avast-cleanup-tool/
Once everything has done… Download and install a fresh copy of Avast