When compiling UE4.10. "GenerateProjectFiles ERROR: We couldn't find a valid installation of Visual Studio."

When I compiling UE4.10 souce code, double click GenerateProjectFiles.bat, it says:

*Setting up Unreal Engine 4 project files…

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 whenit is installed, and this program expects it to be set to the '\Common7\IDE' sub-folder under a valid Visual Studio installation directory.*

There are some informations in my computer:

OS: windows 7

Visual Studio: Visual Studio 2015

Path variable=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;%USERPROFILE%.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\

VS140COMNTOOLS system variable:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\

Registry value:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\InstallDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE"

Is something wrong here?

Hey ytianlong-

When you installed VS2015 did you include the C++ Programming Langauage and the Common Tools (not included by default)? You can check both of these by running the install .exe for VS and choosing the Modify option when propmted. Check the list of features and make sure that Programming Languages->Visual C++ and the entire Common Tools are checked before updating.

Cheers

thanks,it is over

this advice has solved the problem also to me ! thx a lot man

that worked for me as well! tks