Merge installation logic