Wellcome to forums…
Sorry for the inconvenience but it’s not suppose to happen. What is your operational system?
Are you trying to install the last avast version (4.1.396)?
Some trouble that you described are related to earlyer versions of avast!
Do you have any other antivirus installed? Did you uninstall it before installing avast? 