GenerateProjectFiles.bat Fail (UnrealBuildTool Compile Fail)

I have been trying to integrate VXGI in UE4 but I have been having a lot of problems with my GenerateProjectFiles.bat. At first it was saying that it could not find my Microsoft Visual Studio 2015 so I reinstalled it. After that problem was resolved, it now says that my UnrealBuildTool fails to compile when I start the .bat. I have tried doing what it says and install the Targeting Pack but that didn’t do anything.

any ideas on how to fix this issue so I can finally get VXGI intergrated?

A suggestion that worked for me. Use the new VS2017 and select the C++ for games. In the right-hand area, select UNREAL LAUNCHER, that will load all of the necessary pre-reqs including what’s missing. If you do not want to use 2017, open VS2015 setup and select Windows 8.1 SDK.

@Teak421 Thanks for your response. That fixed my error but now I have run into a different problem, sadly. Even though I can successfully use the GenerateProjectFiles.bat and have entered the configvariables to enable it (in C:\Program Files\Epic Games\UE_4.12\Engine\Config), I still cannot see the activation for VXGI in my Direct Light source or my Post Processing.
Any idea what could be causing this? Is my UE set in the wrong place or am I missing something since their are no ACTUAL tutorials on this matter online?

That one I can’t help on… Consider making a new answerhub question for that specific issue. If this question is answered, could you please mark answered? Sure, I get points … but, the search engine I believe will report better findings…

@teak421 I had the same problem and your fix solved it. Thanks.

For nubies:
Find “C++ for Games” in Tools–>Get Tools and Features…