# Can't generate project files: ERROR: A game project path was not specified, which is required when generating project files using an installed build or passing -game on the command line

**URL:** <https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501>\
**Category:** Platform & Builds\
**Tags:** generateprojectfiles, unreal-engine, question\
**Created:** [December 13, 2019, 8:36pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501 "2019-12-13T20:36:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Fletcher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marc\_Fletcher](https://forums.unrealengine.com/u/Marc_Fletcher)\
**Post date:** [December 13, 2019, 8:36pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/1 "2019-12-13T20:36:31Z")

</div>

I downloaded the UE source, and get the follow error when generating project files? Does anyone have any ideas?

“ERROR: A game project path was not specified, which is required when generating project files using an installed build or passing -game on the command line.”

---

<div class="post-metadata">

**Author:** ![wtflow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wtflow](https://forums.unrealengine.com/u/wtflow)\
**Post date:** [June 3, 2020, 2:55am UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/2 "2020-06-03T02:55:30Z")

</div>

Hey there, not sure if you’ve found a solution, but I had the same issue and basically find a way to make it work by doing into the C:/ProgramFiles/ folder instead of before I was doing it from another Hard drive.  
Still, it’s maybe not linked to which hard drive but maybe just the fact to reinstall the source package from scratch.

Still, good luck!

---

<div class="post-metadata">

**Author:** ![Marc\_Fletcher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marc\_Fletcher](https://forums.unrealengine.com/u/Marc_Fletcher)\
**Post date:** [June 3, 2020, 4:30pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/3 "2020-06-03T16:30:32Z")

</div>

I think the solution I ended up using was some combination of a fully qualified path name (even though I was running from the directory of the .uproject) or running the regeneration manually from the command line, instead of the .uproject right-click menu.

---

<div class="post-metadata">

**Author:** ![Marc\_Fletcher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marc\_Fletcher](https://forums.unrealengine.com/u/Marc_Fletcher)\
**Post date:** [June 3, 2020, 4:30pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/4 "2020-06-03T16:30:46Z")

</div>

I think the solution I ended up using was some combination of a fully qualified path name (even though I was running from the directory of the .uproject) or running the regeneration manually from the command line, instead of the .uproject right-click menu.

---

<div class="post-metadata">

**Author:** ![TrifoliumDigital](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrifoliumDigital](https://forums.unrealengine.com/u/TrifoliumDigital)\
**Post date:** [June 3, 2020, 8:12pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/5 "2020-06-03T20:12:11Z")

</div>

For this, your best bet is to open a command prompt. If you’re unsure how. Find the folder where your GenerateProjectFiles.bat lives. then in the address bar type cmd, then hit enter.

That should open a command prompt. The correct format for generating project files is to run something like:

```
generateprojectfiles.bat -project="F:\TestProj_4_25\TestProj_4_25.uproject" -Game -Engine

```

This will create a solution in your game project directory. Just update the uproject path in my command above to point at the one on your harddrive.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Zhuguojun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zhuguojun](https://forums.unrealengine.com/u/Zhuguojun)\
**Post date:** [February 14, 2025, 2:12pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/6 "2025-02-14T14:12:23Z")

</div>

Try removing InstalledBuild.txt under Engine/Build folder and run your bat again. It works for me

---

<div class="post-metadata">

**Author:** ![MEDTATE1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MEDTATE1](https://forums.unrealengine.com/u/MEDTATE1)\
**Post date:** [August 16, 2025, 8:16pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-error-a-game-project-path-was-not-specified-which-is-required-when-generating-project-files-using-an-installed-build-or-passing-game-on-the-command-line/459501/7 "2025-08-16T20:16:04Z")

</div>

This worked for me. Thanks a lot
