SRGAppVerWatcher detect app-install or app-update, and hook your code.