#172262 by JirkaRybka: better globals handling in install system, so the choosen profile and language are remembered