installer: finish the new logic of resolving ranges. #59