Before you install the door you need to perform other works.
At what stage of repair interior doors are installed : Before You Install The Door You Need To Perform Other Works.
Quote from Article entitled At what stage of repair interior doors are installed:
It is necessary to compare the time of the year with the temperature conditions of the room and the material the construction is made of. Temperature and humidity differences are not terrible for metal doors. Whereas wooden ones can have a little shrinkage in a dry room or during the heating season and in the humid environments or in autumn, when it is cold, and the heating system is not yet turned on, temperature differences create some humidity in the room, and wood can swell slightly. All these factors need to be considered, and it is necessary to choose the time when the installation of interior doors will be optimal or to create the suitable conditions in the room for the quality installation.
The full version of the article can be found here.