# GenerateProjectFiles.bat not recognizing Visual Studio 2017

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-bat-not-recognizing-visual-studio-2017/409258>\
**Category:** Pipeline & Plugins\
**Tags:** generateprojectfiles, unreal-engine, Visual-Studio, question\
**Created:** [November 10, 2017, 12:42pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-not-recognizing-visual-studio-2017/409258 "2017-11-10T12:42:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e778332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e778332](https://forums.unrealengine.com/u/anonymous_user_7e778332)\
**Post date:** [November 10, 2017, 12:42pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-not-recognizing-visual-studio-2017/409258/1 "2017-11-10T12:42:21Z")

</div>

I’ve been trying to run GenerateProjectFiles.bat for a good day now, and I’ve tried almost everything - the InstallDir registry key is there, the VS120COMNTOOLS variable is there, I have Visual Studio 2017 with the C++ packages installed, and I still can’t get it to work.  
If it helps, I’m trying to compile the VRFunhouse411 branch.  
Please help?

Error below:

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.

---

<div class="post-metadata">

**Author:** ![SaJjad1378](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaJjad1378](https://forums.unrealengine.com/u/SaJjad1378)\
**Post date:** [August 19, 2020, 5:47am UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-not-recognizing-visual-studio-2017/409258/2 "2020-08-19T05:47:16Z")

</div>

HI   
  
Could you solve the problem?   
  
I have the sane issue with vs2019
