better install path and registry handling