reinstalling license

I had avast premier on my comp and was still valid for a few months and then my harddrive died .I put another hard drive in and installed windows 8 pro instead of thr previous windows 7.how do I reinstall the old license onto my new hard drive so I don’t lose the remainder that I paid for cheers

http://www.avast.com/resend-license-paid.php