This is something that should have been done before paint. By the way, you cannot install the stud/screws in the pinchweld without removing the glass.
A butcher way to install the molding would be use silicone: Use a few dabs every few inches between the molding and the glass. Tape it in place until the silicone sets up. Glassmen use urethane becaues it's right there. The downside of using urethane is its brutal strenght if you ever needed to remove them, but that isn't the glassman's problem if the moldings are destroyed during removal.
To remove them, slice between the glass and moldings.
Mervyn, I believe he's talking about 'the pinchweld trim' on a convertible.