Installation room doors need to remove trim, lay door on the floor, and fix the trim on the door with nails, and leave a gap in order to avoid friction door to frame.
Here you need to leave room for the door lock, given the small gap between the door and trim. Then remove the so-called box, and set it to the doorway in the correct vertical position.
These frames, fasteners to the wall using the plugs and the screws. Also use foam in small amounts, as it may deform the door trim.
Install between door trim, bars to avoid deformation. After drying, the foam can be mount the door itself, on the trim, special fasteners, loops. Can be taken away from the door edges, no more than 10-15 cm.
Our door is ready.