New Construction Windows
Put the window into the prepared opening and shim until square and level. Nail through flange into studs to install. Tape over flange and studs to waterproof.
Replacement Windows
Put the window into the existing outer frame. Assure that it's squared and use pre drilled holes in the window frame to attach it to the outer frame.