When removing components, use the trim tools or equivalent.
Apply protective tape (A) to the body. Using a trim tool, pry up on the roof molding (B).
Pull up and slide the roof molding to release the front bracket (C) from the pin (D), then remove the roof molding from under the windshield molding (E).