The offside is easy enough, the nearside however is a bit of a pain to get the metal clip back over the rear of the light.
What I ended up doing was putting a cable tie around the middle of the metal clip and doing the cable tie right up. Then you can use the tail of the cable tie to pull the clip back over the cover after its on.