Improving installer by adding custom hooks