I did mine recently as follows;
A layer of 3M strip seal between flat section of the drip rail and roof.
Windscreen sealant in the groove covering the roof drip rail and then along the inner edge of the flat section of the drip rail.
Taped up the rectangular holes and bent the tags back into the metal weather strip so that no sealant disappeared into these leaving holes. The screw holes give all the alignment needed. Two rows of 3m strip seal as per David’s photo on the inner trim and then more windscreen sealant along all edges particularly at the rear of the quarter window.