refactor installer using getInstallPath method