DavidR
5
A similar thing cropped up elsewhere and Vlk (I think) suggested this.
Uninstall avast, delete the reg key HKEY_LOCAL_MACHINE\Software\ALWIL Software and reinstall avast.
I doubt that it would hurt to remove the other key you mentioned as it too should get created on installation.