Turn off the electricity to the circuit you are working on and locate the end-of-run receptacle. Remove this receptacle from its box by unscrewing the screws holding it in place.
Cut the holes for the fan and the switch box. The fan hole should be large enough to allow you to slip the brace bar and junction box above the ceiling. Above the receptacle and the switch, where the wall and ceiling meet, cut a 1-by-2 inch hole for feeding the wires. Save the drywall for replacement later.
Install the hardware. Attach the junction box to the brace bar using the hardware that came with the box. Attach the brace bar to the joists above the ceiling with the wood screws. Affix the switch box to the drywall with screws.
Run the wiring. Feed the fish tape through the hole above the switch box across the ceiling to the junction box. Attach the electrical cables to the end of the fish tape and pull it back toward the wall. Drop the wire down to the switch box. Repeat this step with the receptacle-to-fan cable.
Connect the wires to the switch and receptacle. Using a screwdriver, attach the black wires to the brass terminals and the white wires to the silver terminals. Connect the ground wires to the ground terminals in the switch and receptacle boxes. At the switch, wrap a piece of electrical tape around the white wire to indicate that it is hot. Attach the receptacle and the switch to their boxes using screws.
Connect the wires at the fan and light kit. Using plastic twist-on electrical connectors, connect the black wire from the switch to the black wire from the receptacle. Using an electrical connector, connect the white wire from the receptacle to the fan's white wire and the light kit's white wire. Finally, connect the black wire from the fan and the red or black wire from the light kit to the white wire from the switch. Wrap a piece of electrical tape around the white wire from the switch to indicate it is hot.
Hang the fan and light according to the manufacturer's instructions. Repair the holes in the drywall using a patch kit and turn on the power.