GenerateProjectFiles.bat VS2015 error

Hello!
First time builder of Unreal here. I have VS2015 installed, and just cloned 4.10 to my D Drive.

Ran Setup, no issues. Running GenerateProjectFiles.bat and:

GenerateProjectFiles ERROR: We couldn't find a valid installation of Visual Studio.  This program requires Visual Studio 2015 or Visual Studio 2013 or Visual Studio 2012.  Please check that you have Visual Studio installed, then verify that the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\InstallDir (or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\InstallDir on 32-bit machines) registry value is set.  Visual Studio configures this value when it is installed, and this program expects it to be set to the '\Common7\IDE\' sub-folder under a valid Visual Studio installation directory.

Checked my registry and the above entries exist.
Looked at the bat, found that the “” variable is never set. Looked at “GetVSComnToolsPath.bat”, and the TmpPath variable is never set when I run it.

However, if I run the reg.exe command from the file manually:

D:\git\epic\UnrealEngine\Engine\Build\BatchFiles>REG.exe query HKLM\Software\Wow6432Node\Microsoft\VisualStudio\14.0 /v "InstallDir"

HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\14.0
    InstallDir    REG_SZ    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\

Any help or insight?

edit: I am on Windows 10.

Hello jankcat,

Just to have a bit more information, what Operating System are you using? Also, can you try verifying your install of Visual Studio 2015?

Hello!
I am on windows 10.
I am not sure what you mean by verifying my install, but you can see in the above snippets that the registry is populated. I ran a “repair install” from add/remove programs, and the error persists.

That was what I was referring to as verifying, I apologize for the confusion. The next thing to try would be similar. Inside of add/remove programs, start the repair process again for Visual Studio but you should have an option for “Modify” instead of “Repair”. This will show you a list of features that can be installed with Visual Studio. Please ensure that you have “Visual C++” under Programming Languages, as well as “Common Tools” selected and then hit Update if necessary. I’m currently looking into what else could be the issue as I’m not 100% sure this will fix it, but it’s worth a try and something that may cause problems later if these features are not installed.

Well, after running the Modify, I noticed that C++ was not installed… likely because my experience is as a C# developer…

Facepalm

Thanks.