The invention relates to a glass door and window mounting method. The glass door and window mounting method uses a glass window frame mounting device. The glass window frame mounting device comprisesa base, a lifting unit, a supporting unit and a nail shooting unit, wherein the lifting unit is arranged at the upper end of the base, and the supporting unit is arranged at the right end of the lifting unit; and the nail shooting unit is arranged at the right end of the supporting unit. According to the glass door and window mounting method, by means of the structural design that movement, contraction and adjustment can still be achieved after contact, when the length-to-width ratio of a frame is different and one end of a fixed end makes contact with the inner wall of the frame, the other end of the fixed end can still be fed to fix the other end of the frame, so that the frame is completely fixed; and according to the glass door and window mounting method, through the streamlined working processes of nail taking, edge changing, nail shooting and the like, the nail shooting operation is completely automatic and streamlined, so that the problem that the frame falls off when the nail shooting operation cannot be manually carried out is solved.