It's not a hard job, but very labor intensive.
- Remove all the interior trim around the windows to drop the headliner. Do it when it's warm and there is less chance of the plastic pins breaking.
- Remove the headliner, drop the seats so you have the most room to turn it and get it out the rear hatch without bend it too much
- Disconnect the sunroof wiring and drain tubes
- Unbolt the sunroof, 2 helpers make it easier.
- Reverse to install the used one.
If you have access to self-serve yards, you can practice on a yard car.
I know some of the slide hardware changed from year to year. If you change the complete frame that issue goes away. Best of luck!