Window trim clips

Should the windshield trim clips be installed before the windshield is in or can they be installed afterwards.
Same for the rear, the rear glass is still in the car so Im hoping I can install the clips without removing the rear glass but not sure on either?

Thanks!