Oh okay, it sounds like you had a bad downloaded avast install file. That happens some times. Try downloading it again and retry your install.

Also do a clean install by rebooting your machine before running the install file.