These are cheaply made and don't put out much light.  They come with screws to anchor but I have chosen to just place them at the edge of my deck.  Some of them stay lit til the morning, while 1-2 of them are dark by morning.  They come with rechargeable batteries that are said to have to be replaced in a year or so.