If your roof is over 15 years old or in poor condition, replacing it before installing solar is often recommended.