The error is: "Avast installer cannot continue because the last Avast operation was performed without restarting. Please reboot your computer first and then run the installer again". I have done this several years times but still the same error.
I used reset and not refresh, in my program...