This is the part that decides the outcome, and the sequence matters more than the speed.
Dry fit first. Offer the frame into the opening with no fixings and no foam. Check it goes in, check the gaps are even, and check the threshold sits flat. Correcting the opening is easier now than in twenty minutes.
Level the threshold before anything else. Everything above it takes its reference from the threshold, so a threshold out of level puts the whole frame out.
Plumb the hinge jamb, then fix it. Pack behind it at the hinge positions, check the level again after each fixing, and do not tighten everything before you have checked all of it.
A frame pulled tight against a hollow behind it will bow.
Fix the lock jamb to the door, not to the tape measure. Hang or close the leaf and set the lock jamb so the gap is even the whole way down. That gap is what the seal compresses into.
Check the diagonals. Measure corner to corner both ways. Equal diagonals mean a square frame, and a square frame means a door that closes with one finger in ten years.