UE4 opening new instances of Visual Studio

How do i set the engine path for a project?
Or do you mean that i have to have UE installed on one drive and then put my projects on another drive?