Does rates increase with new roof install

Does homeowners insurance rate increase when you install new roof?

I hear conflicting information, some say it decreases and some say they had to pay-up for adjusted new rates. How does it really work? Thanks for the advice!