Deductions & credits

I too would like to know. I have a wood shake roof which solar panels cannot be installed on. I am going to change my roof to composite shingle and install solar panels. Can I claim the tax credit on my entire roof or only a portion the solar panels will be installed on? Also, how soon after the new roof is put on, do the solar panels have to go on for the tax credit to be valid? I am planing to spend a couple months to research my solar options before having the panels installed.