It should work, but i definitely will not be a clean installation as you don’t remove all registry entries related to avast that way.