Implement system event during installation.

Hi, this is the initial version to register system events during application installation time. Welcome your feedback!