First version
Replacing an old roof before installing solar avoids removing the panels to reroof later
A roof under rooftop panels can be replaced only once the panels and racking come off, and they then go back on, a cost of its own. California's utility commission and Hawaii's consumer office both say to replace a roof that will soon need it before solar, not after.
Applies to: Panels mounted on a roof that will need replacing during the system's life. Not ground mounts. Some raised flat-roof arrays leave room for repairs underneath.