Remove Kaspersky completely before installing Avast. That means also cleaning the registry.