I don't know how the factory did it, seems to vary from car to car and year to year....but I cut the studs off and use a dab of RTV silicone seal, by GE,, rubber stuff that smells like vinegar....tape in place overnight....
sticks for years....in fact I use it for those stick on bubble mirrors along with the tape that lets go...still there, 15 years later....