I have created an un-installation process which is triggered just at the time when its parent sisx package is being un-installed. Is it possible to handle both the un-installation and the re-installation phase? I would like to know if the package is being un-installed or re-installed. There is a way how to handle this event through CAknAppUi::HandleSystemEventL(const TWsEvent & aEvent) but the method is not triggered and even if it was I can not differentiate between the two events just with EApaSystemEventShutdown message.

Thanks for an advice.