Stand the pre-hung French doors in the opening, with the casing lined up with the interior edge of the frame. The doors should be bound closed by plastic or small wood brackets.
Hold a level vertically along an edge of the casing. Slide shims into the space between the casing and the surrounding frame. Shim both sides along the upper and lower edges until it's level and plumb (straight up and down).
Remove the binding that holds the doors closed, and open them so you can access the casing around the edges.
Shoot screws outward from the casing into the surrounding frame. Make sure the screw heads are buried. Put screws every 10 to 15 inches up and down the casing, along the interior and exterior edges.
Cut off the overhanging shims with your utility knife.
Use the screw gun to take out the middle screw from each hinge. Put a 2 1/2-inch screw in place of each one, so it goes through the casing and into the frame.