UnrealBuildTool Exception: ERROR: Visual Studio 2012 or Visual Studio 2013 must be installed in order to build this target

I installed vs2010 and vs2012 in Windows Server 2008 R2 Standard.
What need i do to let it find the vs2012? I need help.

Hey oulong-

Which version of the engine are you using? As of 4.7 we no longer support VS2012. You can instead use the free version of VS2013 Community. I would suggest removing both 2010 and 2012 from the machine so that it does not have any version conflicts when being used.

Cheers