Avast free is always free, you just need to register it through maintenance/registration.
There is no need to install any code.