To install solar fence lights, attach metal mounting hooks or cup hooks onto the wooden posts. These hooks will hold your string lights, so you want to be sure that you secure them. Screw the mounting hooks or cup hooks into the wooden posts at one end. Install the posts onto your fence to support your lights.