how to reinstall after having to do a factory re-install

I had to do a factory re-install after my computer crashed. I had downloaded a free version then upgraded to a better one. How do I reinstall it?

when you recovered to factory specc… did you then also recover a factory installed trail AV like Norton / McAfee / TrendMicro ?

if so, this must be removed first, see here http://www.avast.com/en-eu/faq.php?article=AVKB11#artTitle

how to install and insert license http://www.avast.com/en-eu/faq.php?q=2014#searchForm

Installation files http://www.avast.com/en-eu/download-software