After a fresh installation of the OS, install the latest version of avast and use the license that you have.