Fixed #5488 - fixed hook deprecation warning

- code from installer executable was moved to hooks
- services details in post-install message printed out on success only