Remove registry keys before registration