Request the license and try to use it:
Paid version : http://www.avast.com/resend-license-paid.php
Free version : http://www.avast.com/resend-license-free-antivirus.php

If it fails, tell us the exact avast version, windows version and other information that may be relevant like is/was there another malware remover on the system and how was it deleted…