Although I'm not familiar with Avast, most AV software will allow you to create a scan exception for files or folders. You should also be able to temporarily switch it off while you download and install.
Go into settings, there is a place for exclusions there. LouP