Add app pre-install hook