Installation of energy-efficient windows and doors