However it s likely that the light fixture was mounted in the middle of a stud cavity which makes mounting a box that can support the weight of the fixture more difficult.
Wiring porch light fixture.
Splice the white lead to white wire and black to black.
Caulk around the base.
These connect to the black and white wires in the electrical box with the provided larger wire nuts.
Low voltage light fixtures luminaires must be no closer than 5 feet away from the outside walls of pools spas or hot tubs.
Fold the wires into the box and install the fixture onto the mounting bolts.
Electrical wiring at the light fixture is typically made by connecting together the wires of the same color which are commonly black white and the bare ground wire or green ground wire.
Make sure the power source is turned off.
Exterior light fixtures do not require gfci protection.
Wire the switch install a bulb and test.
Support the fixture with a wire coat hanger.
Low voltage lighting systems must be listed by an approved testing agency as an entire system or assembled from individual components that are listed.