How can I make the Epic Games launcher locate a moved Unreal Engine

I moved the directory of my Unreal engine from D: to C:\program files, now the launcher can’t find it. The launcher is in C:\programming files(x86)\epic games. For some reason I’m not allowed to download the engine into the C: directory but I am allowed to move it there. So I can’t do the trick of starting to download it and then stopping the download to make the link.