[Installer] Improve specs for post installhooks

See #985