Position the lock mechanism at the bottom edge of the sliding glass door. Place it flat against the edge of the door along the door track, according to the packaging directions.
Push a marker through each of the two screw holes and mark the mounting locations on the edge of the door.
Hold the lock mechanism in place and push in the locking button with one hand while marking the spot where the tip of the locking rod strikes the stationary glass door. Remove the lock mechanism and set it aside.
Use a handheld drill to make holes of the diameter specified in the lock manufacturer’s directions. Drill exactly to the depth specified in the instructions to avoid striking and breaking the glass in the door.
Place the locking mechanism back in place at the bottom edge of the sliding glass door. Insert a screwdriver bit into the drill and drive the screws included with the lock mechanism into the holes and the edge of the door.