So this is how I repaired my Freelander.
You are then faced with the foam cover, unless you are buying a replacement, this needs to be carefully peeled away using a sharp blade, cutting through the mastic - the warmer the day the easier it is.
Now you will be able to see the 'gubins'.
You will see the two runners either side of the door, and where the glass clips in, there is a clamp bolt on each of the cast aluminium clams that needs to be loosened, there is also to electrical connections to the window that need to e disconnected. You should now be able to lift the glass free of the car.
Each runner is held using two nuts at the top and a nut at the bottom, just undo and you should be able to 'jiggle' the runner out of the door. The motor is held in with three bolts, just loosen them and twist the motor free of the door.
Once everything is out it should look like this.
Taking the cover of the motor will probably show what a state the cabling can get into...