on remove+install, downgrade and upgrade we just ensure apps xkeys are unique and flag needsUpdateAll if there are active apps registered
("deleted" apps should not be reinstalled)