move common installer setup stuff to a
helper method
Merge pull request #520 from gramos/move-common-installer-setup

Move common installer setup stuff to a helper method