Right at the finishing setup portion my laptop froze
First, use the AC power, not only the battery, for the install.
Re-download anew the latest setup.exe from the
official site only.
Please, reboot into Windows Safe Mode again and run the Clean Uninstall Utility for Avast so to clean the previous failed installs.
Reboot into Normal mode. Wait several minutes (not just seconds) so all drivers / processes / services are finished. The main GUI of Windows might seem "ready" for you to work, but there might be additional "things" being done.
Temporarily, disable any nonessential programs and/or services, like backups, resident defraggers, hardware monitors and so on.
Temporarily disable any power savers, including screen savers.
Temporarily disable any type of network connection, specially those like wi-fi (and any non-wired).
Run with administrative permissions.
After the install finishes, reboot if requested.
If after installing Avast, you have some compatibility problem, try Avast main GUI -> settings -> troubleshooting -> "load avast after other system services".
Once configured, reboot again.
Do you have enough free space?
Before the install, ran a boot scandisk / chkdsk and repair if necessary.
Do you have all Windows updates (specially SPs)? Recheck that Windows is Registered / Validated (not strictly a requirement, but there are some cases where we have seen problems before/after a Windows SP update).
Do you have enough hardware resources to run Avast? Recheck.
HTH.