Unless the product is very, very cheap and can be easily replaced periodically.
Just thinking aloud, but think about a (very, very) large (traditional) camera, you have this roll of film that you advance one frame at the time, and then expose to sunlight.
Once every - say - two or three years, when it doesn't produce anymore enough electricity, you advance one frame and once every (say) ten or twenty years, you change the film roll.
You could integrate solar stuff into structures. Then it probably has to be pretty long lived. This is because solar is getting cheap anyway and it doesn't cost much more to make a wall a solar panel while you're building a wall anyway - most of the cost of the panel is the supporting structure and installation anyway - which have to be there for the wall and are thus paid for already.
On the other hand maybe you can have flimsy solar stuff that's more like an umbrella or parasol or awning and could be replaced every few years. You could have it even leased. Return the old one for recycling. Maybe it's taken off during the winter entirely. It's dark in the winter anyway and it would be too expensive to make it so sturdy that it can handle snow. If it's destroyed by a storm, no big deal, get a new one.
We have a work bee twice per year where a lot of people from the condominium company trim bushes, fell trees, rake, pick up waste etc. Why not put up a few solar panels on top of the garages for the summer at the same time? And take them off in October then.
I think neither. "Several years" is still a huge problem. That's way too short.