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:
If installation is carried out before flooring of laminate, parquet, linoleum, and any other materials, it is necessary to accurately calculate the width of the coating plus adhesive or other materials that will be used during its installation.
The full version of the article can be found here.