Open the Sun Roof about two-thirds. Shut key off.
Use a tool like a plastic knife or table knife to remove the four expansion retainers on the front of the sunroof. These are the retainers holding the sunroof headliner to the sunroof. Pull the headliner forward and out of the sunroof hole. Making not how to return it to its proper place on the rollers.