You wind the sunroof back into the roof to access the screws round the frame.
Then, you remove the sunroof magazine cartridge complete with glass from the roof by gently lifting the front edge and working it forwards so it comes out from the roof.
The sunshade then slides out from the rear of the runners.