Investors & landlords

The roof is not eligible for any credit.  The fact that you needed to improve the roof first is not an "installation cost" of the solar system and is not eligible for credit.  Improving your roof adds to your home's cost basis and may reduce your capital gains when you sell.