ok this is how i do it,if it is tile then i intall the door frist so i don't have to worry about cracking the tile.now if it is carpet then i do the carpet it frist then the door,in my experince i have just found it easyer this way.hope this is helpful to you and welcome to this forum.