What kind of error does it end with? Isn't there a button to show log in the error window?
If not, can you check if C:\ProgramData\Avast Software\Persistent Data\Avast\Logs\Setup.log file is present, and if so, attach it?
(I'm assuming an Internet connection exists; if the machine if offline, then the online installer naturally won't work.)