simplify installercode to chose the right installation path