# Cannot Generate Project Files

**URL:** <https://forums.unrealengine.com/t/cannot-generate-project-files/366527>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, editor, question\
**Created:** [August 8, 2016, 7:09pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527 "2016-08-08T19:09:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [August 8, 2016, 7:09pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/1 "2016-08-08T19:09:18Z")

</div>

Hey there, I have been trying to build UE4.12 using the source code but when I try to run the Generate Project Files, I get this error:

![102014-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/6/17675d93a41184d692c47f2a85c694e8ff1935c0.jpeg)

But I do have VS2015 Community installed with the Common Tools. I also tried re-installing it multiple times but still keep getting this error. How do I set the registry value?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [August 8, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/2 "2016-08-08T19:30:32Z")

</div>

Hello Abbeysaurus,

It could be useful to check the Environment Variable first, which you can see how to do at this page:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

As far as checking the registry value, you can do so by opening “Run” from your start menu and typing in “regedit” (without the quotes.) You can then navigate to the location it lists. To give an idea of what it should be set to, my current value is:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\

---

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [August 8, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/3 "2016-08-08T19:45:38Z")

</div>

I just checked the reg and it is set to the correct file path

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [August 16, 2016, 2:42pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/4 "2016-08-16T14:42:43Z")

</div>

I apologize for the delay but I’m trying to find more reasons as to why this would be occurring. One thing to ask is if you’re using the editor while it’s located on an external hard drive. If this is the case, this could be causing some issues.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [August 23, 2016, 1:11pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/5 "2016-08-23T13:11:31Z")

</div>

This may sound silly and might be wrong, but can you check to ensure that the path set in the registry and the environment variable actually match up with your Visual Studio installation? It’s possible that it was installed elsewhere such as Program Files instead of Program Files (x86) or on another drive.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [August 23, 2016, 5:23pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/6 "2016-08-23T17:23:01Z")

</div>

I suggest making sure you installed the C++ tools for VS2015. Re-run the installer and check all the C++ stuff and click through to the end of the installer.

---

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [August 24, 2016, 9:43am UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/7 "2016-08-24T09:43:58Z")

</div>

I just reinstalled VS and I noticed I wasn’t selecting the Visual C++ Common Tools. I had only selected the normal Common Tools. All fine now. Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [August 24, 2016, 12:55pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/8 "2016-08-24T12:55:25Z")

</div>

Never actually seen the lack of Visual C++ Common Tools return this registry related error. I’ll have to remember that. Thank you for the suggestion .

---

<div class="post-metadata">

**Author:** ![doninuel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doninuel](https://forums.unrealengine.com/u/doninuel)\
**Post date:** [September 8, 2016, 6:02am UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/9 "2016-09-08T06:02:03Z")

</div>

so… i can not put vs 2015 in path D; ??? MUST PUT IT in path C;???

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [September 8, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/cannot-generate-project-files/366527/10 "2016-09-08T14:41:18Z")

</div>

Visual Studio should be installed on the same drive as your Windows installation, as Visual Studio refers to many files from the Windows installation.
