Installdir missing in Visual Studio Community's registry location?

I m trying to compile UE4 source code in < but when i hit GenerateProjectFiles.bat, it gives me this:

GenerateProjectFiles ERROR: We couldn
t find a valid installation of Visual
Stud io. This program requires either
Visual Studio 2013 or Visual Studio
2012. Ple ase check that you have Visual Studio installed, then verify
that the HKEY_LOCAL
_MACHINE\SOFTWARE\Wow6432Node\Microsoft…
(or HKEY_LO
CAL_MACHINE\SOFTWARE\Microsoft\VisualSt…
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.

what to do?

Hey -

Make sure you have the latest version of Visual Studio 2013 (with service pack 5) installed on the machine. You can download the free Community version of VS which is compatible with UE4 here: Download Visual Studio Tools - Install Free for Windows, Mac, Linux

Cheers

Instead of downloading Microsoft Visual Studio 2015 try downloading 2013 version. It is in the same link:

Go down and on the left you will see Visual Studio 2013. Download it ( I prefer iso) and install.
You probably downloaded 2015 version which does not work.