# 4.22 VS2019 GenerateProjectFiles.bat fails

**URL:** <https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872>\
**Category:** Getting Started & Setup\
**Tags:** generateprojectfiles, UE4-22, windows-7, unreal-engine, Installation, question\
**Created:** [April 8, 2019, 7:55pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872 "2019-04-08T19:55:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![GigasightMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GigasightMedia](https://forums.unrealengine.com/u/GigasightMedia)\
**Post date:** [April 8, 2019, 7:55pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/1 "2019-04-08T19:55:38Z")

</div>

I’m attempting to install 4.22 from source, as I usually do.

Windows 7 64  
Visual Studio 2019 Community

I’m migrating from VS2015 to VS2019. I’ve uninstalled 2015 and installed 2019 clean, it works fine.

Downloaded 4.22-release source from github.  
Extract files to a new directory.  
Run Setup.bat from that directory.  
Allow permissions as needed.  
When complete, Run GenerateProjectFiles.bat

Fails.

I end up with a console full of warnings. It starts with errors but overflows quickly. I was able to retrieve the attached Error Output

Any ideas? Are there VS packages I’m supposed to install for UE4 that I missed? I included C++ and C#, Windows Dev, Desktop, .NET, and UWP. I know 2017 required an Unreal installation pack, but I didn’t see anything in the options for UE4 under Game or anywhere else. I did find Unity and Cocos, so I’m guess that’s where it would have been?

---

<div class="post-metadata">

**Author:** ![Lit\_Chan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lit_chan/32/536418_2.png) [@Lit\_Chan](https://forums.unrealengine.com/u/Lit_Chan)\
**Post date:** [April 9, 2019, 2:41am UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/2 "2019-04-09T02:41:59Z")

</div>

I have the same problem. Is there any solution?

---

<div class="post-metadata">

**Author:** ![GigasightMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GigasightMedia](https://forums.unrealengine.com/u/GigasightMedia)\
**Post date:** [April 9, 2019, 6:31am UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/3 "2019-04-09T06:31:18Z")

</div>

If I find one I’ll post it here, but I haven’t found one.

---

<div class="post-metadata">

**Author:** ![Xaser3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xaser3D](https://forums.unrealengine.com/u/Xaser3D)\
**Post date:** [April 9, 2019, 11:23pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/4 "2019-04-09T23:23:21Z")

</div>

You need to install Microsoft .NET Framework Developer version

---

<div class="post-metadata">

**Author:** ![Xaser3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xaser3D](https://forums.unrealengine.com/u/Xaser3D)\
**Post date:** [April 9, 2019, 11:24pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/5 "2019-04-09T23:24:02Z")

</div>

Microsoft .NET Framework 4.6.2 Developer Pack

---

<div class="post-metadata">

**Author:** ![Xaser3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xaser3D](https://forums.unrealengine.com/u/Xaser3D)\
**Post date:** [April 9, 2019, 11:33pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/6 "2019-04-09T23:33:04Z")

</div>

[https://www.microsoft.com/en-us/download/confirmation.aspx?id=53321](https://www.microsoft.com/en-us/download/confirmation.aspx?id=53321)

---

<div class="post-metadata">

**Author:** ![GigasightMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GigasightMedia](https://forums.unrealengine.com/u/GigasightMedia)\
**Post date:** [April 12, 2019, 6:15am UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/7 "2019-04-12T06:15:50Z")

</div>

I’ve already installed 4.6.2

---

<div class="post-metadata">

**Author:** ![Xaser3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xaser3D](https://forums.unrealengine.com/u/Xaser3D)\
**Post date:** [April 12, 2019, 6:23am UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/8 "2019-04-12T06:23:05Z")

</div>

Developer version

---

<div class="post-metadata">

**Author:** ![GigasightMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GigasightMedia](https://forums.unrealengine.com/u/GigasightMedia)\
**Post date:** [April 12, 2019, 9:23pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/9 "2019-04-12T21:23:22Z")

</div>

I’ve already installed 4.6.2

---

<div class="post-metadata">

**Author:** ![chris-gong](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chris-gong/32/1106462_2.png) [@chris-gong](https://forums.unrealengine.com/u/chris-gong)\
**Post date:** [April 22, 2019, 5:08am UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/10 "2019-04-22T05:08:52Z")

</div>

Are you running `GenerateProjectFiles.bat -2019` with admin privileges?

---

<div class="post-metadata">

**Author:** ![GigasightMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GigasightMedia](https://forums.unrealengine.com/u/GigasightMedia)\
**Post date:** [April 22, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/11 "2019-04-22T20:01:23Z")

</div>

Short answer: yes.

Longer answer: I believe so. I’m not doing anything different than I have with previous installs. I execute the batch file by double-click, I’m not in a console window already. I am logged in as the Windows administrator, and confirm administrator permissions when prompted by the install procedure.

I have not launched an admin console window and executed the batch file from that window, nor have I forced the batch to run “as administrator”. I do not expect that this would address my issue, but it’s possible.

As it stands right now I’ve opted to install 2017 and work with that until it is no longer supported. I’ve not had the same problem with the 2017 installation procedure (which bolsters my impression this isn’t a permissions issue). If others have experienced the same problem I would welcome their comment after attempting the install with explicit administrative access.

---

<div class="post-metadata">

**Author:** ![VaultedSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VaultedSky](https://forums.unrealengine.com/u/VaultedSky)\
**Post date:** [April 28, 2019, 8:05pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/12 "2019-04-28T20:05:47Z")

</div>

I’ve got 2017 installed with all .net/VC++ stuff downloaded. I’ve also downloaded that microsoft link above and installed. Still same problem…

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [May 2, 2019, 5:37pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/13 "2019-05-02T17:37:06Z")

</div>

Following this link solved the problem for me:  
[https://www.microsoft.com/en-us/download/confirmation.aspx?id=53321](https://www.microsoft.com/en-us/download/confirmation.aspx?id=53321)

---

<div class="post-metadata">

**Author:** ![NeoTactical](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeoTactical](https://forums.unrealengine.com/u/NeoTactical)\
**Post date:** [July 12, 2019, 2:43pm UTC](https://forums.unrealengine.com/t/4-22-vs2019-generateprojectfiles-bat-fails/446872/14 "2019-07-12T14:43:26Z")

</div>

I have had the same issue with 4.22.3, the Developer Pack with 4.6.2 solved my issue. I had already installed 4.6.2 previously, However this version in the link fixed it.
