Deductions & credits

You can claim the credit on new installation.    That would include adding new capacity, or ripping out the old system and installing a new one.  It would not include making repairs to the old system.