# Microsoft Visual C++ Runtime no longer automatically included in V5.1 Builds?

**URL:** <https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [January 27, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116 "2023-01-27T16:14:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AesirAron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AesirAron](https://forums.unrealengine.com/u/AesirAron)\
**Post date:** [January 27, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/1 "2023-01-27T16:14:51Z")

</div>

Hello,  
Ever since our Upgrade to 5.1, some PC’s won’t run our game builds anymore, throwing an Error Message saying " The following components are required to run this game: Microsoft Visual C++ Runtime". As I understand, past UE 5 Versions automatically built Microsoft Visual C++ Runtime into their builds (or automatically downloaded them for players).

Is Epic Games planning on automatically including Microsoft Visual C++ Runtime again in future versions? We would prefer to hold off on fixing this ourselves if it will be fixed on Epics side in a few months anyways since our game hasn’t launched yet.

---

<div class="post-metadata">

**Author:** ![allarkvarkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@allarkvarkk](https://forums.unrealengine.com/u/allarkvarkk)\
**Post date:** [March 9, 2023, 1:29am UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/2 "2023-03-09T01:29:13Z")

</div>

I still get it even on 5.0.3

---

<div class="post-metadata">

**Author:** ![SerkanAyhan1973](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerkanAyhan1973](https://forums.unrealengine.com/u/SerkanAyhan1973)\
**Post date:** [July 7, 2023, 1:40pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/3 "2023-07-07T13:40:08Z")

</div>

Same error message with version 5.2. Has anyone found a solution??

---

<div class="post-metadata">

**Author:** ![Vityoki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vityoki](https://forums.unrealengine.com/u/Vityoki)\
**Post date:** [July 29, 2023, 8:43pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/4 "2023-07-29T20:43:39Z")

</div>

Hi, guys, I resolved it with adding to DefaultGame.ini (you can do it with Editor → Project Settings → Package -\>…):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/9/209ca5189f08b8c94f68328f4de09e466c81069a.png)

```auto
[/Script/UnrealEd.ProjectPackagingSettings]
ApplocalPrerequisitesDirectory=(Path="$(EngineDir)/Binaries/ThirdParty/AppLocalDependencies")

```

And the main: -prereqs word in build command:

```auto
call "%UE_PATH%\Engine\Build\BatchFiles\RunUAT.bat" BuildCookRun -project="%CI_PROJECT_DIR%\%PROJECT_NAME%.uproject" -noP4 -clientconfig=%BUILD_CONFIGURATION% -serverconfig=%BUILD_CONFIGURATION% -installed -unrealexe="%UE_PATH%%UE_RELATIVE_EXE%" -utf8output -platform=Win64 -build -cook -allmaps -CookCultures=en -unversionedcookedcontent -prereqs -stage -package -stagingdirectory="%BUILDS_PATH%\%PROJECT_NAME%"

```

Or 2nd variant if you are using Custom Launch Profile then:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/7/fb70f4ae6d3afaa38310b5862fbaac72bb850fe9.png)

---

<div class="post-metadata">

**Author:** ![SerkanAyhan1973](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerkanAyhan1973](https://forums.unrealengine.com/u/SerkanAyhan1973)\
**Post date:** [August 24, 2023, 10:07am UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/5 "2023-08-24T10:07:24Z")

</div>

> [@Vityoki](#):
>
> And the main: -prereqs word in build command:

Hi @Vityoki  
What did you mean “And the main: -prereqs word in build command:”  
Where do i have to write that code?

---

<div class="post-metadata">

**Author:** ![Vityoki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vityoki](https://forums.unrealengine.com/u/Vityoki)\
**Post date:** [August 30, 2023, 11:11pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/6 "2023-08-30T23:11:57Z")

</div>

```auto
rem Consider:
rem -applocaldirectory="$%UE_PATH%\Engine\Binaries\ThirdParty\AppLocalDependencies"
rem -skipdeploy
rem -skipcook 
rem maps one by one, not -allmaps
call "%UE_PATH%\Engine\Build\BatchFiles\RunUAT.bat" BuildCookRun -project="%CI_PROJECT_DIR%\%PROJECT_NAME%.uproject" -noP4 -clientconfig=%BUILD_CONFIGURATION% -serverconfig=%BUILD_CONFIGURATION% -installed -unrealexe="%UE_PATH%%UE_RELATIVE_EXE%" -utf8output -platform=Win64 -build -cook -allmaps -CookCultures=en -unversionedcookedcontent -prereqs -stage -package -stagingdirectory="%BUILDS_PATH%\%PROJECT_NAME%"

```

@ [SerkanAyhan1973](https://forums.unrealengine.com/u/SerkanAyhan1973) Sorry for the late reply, try this. See here ‘-prereqs’ arg inside the command above. You can add it also through Custom Launch Profile. I think all that is needed for C++ redistributables included in to package - is this argument for the build command.  
After that, if C++ redistributables are absent on the end computer - Epic will raise the installation process (when you click on yourgame.exe) with the installation wizard.

---

<div class="post-metadata">

**Author:** ![SerkanAyhan1973](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerkanAyhan1973](https://forums.unrealengine.com/u/SerkanAyhan1973)\
**Post date:** [August 31, 2023, 10:17am UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/7 "2023-08-31T10:17:49Z")

</div>

Thank you for your answer @Vityoki

> [@Vityoki](#):
>
> Epic will raise the installation process (when you click on yourgame.exe) with the installation wizard.

In my case the installer already does the installation. I am looking for a solution that the installation does not come at all

---

<div class="post-metadata">

**Author:** ![Vityoki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vityoki](https://forums.unrealengine.com/u/Vityoki)\
**Post date:** [September 1, 2023, 10:45pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/8 "2023-09-01T22:45:24Z")

</div>

then firstly build an ordinary c++ sln (not ue) with such depency, maybe need to update somehow project setting there. and only after maybe you can find compiler arguments that you need. and after that you can add them in some apropriate cs file of unreal , which build it (so maybe some custom ue needed, or custom UBT, idk).  
it looks like it’s not needed, because sometime redistr already installed by other programs like games and all okay after that, they don’t need to be included with every game. it’s usual process to install it once on a machine (bad design, yeah)

---

<div class="post-metadata">

**Author:** ![SerkanAyhan1973](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerkanAyhan1973](https://forums.unrealengine.com/u/SerkanAyhan1973)\
**Post date:** [September 6, 2023, 10:20am UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/9 "2023-09-06T10:20:04Z")

</div>

Was normal until UE 5.1.0, started in later versions

---

<div class="post-metadata">

**Author:** ![MizzoFrizzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MizzoFrizzo](https://forums.unrealengine.com/u/MizzoFrizzo)\
**Post date:** [August 16, 2024, 6:40am UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/10 "2024-08-16T06:40:44Z")

</div>

Hey man are you able to dumb this down for me please?? I’m trying to sort this out so I can package my entry for a game jam… Where do I paste that second wall of code please?

---

<div class="post-metadata">

**Author:** ![n1lknarf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n1lknarf](https://forums.unrealengine.com/u/n1lknarf)\
**Post date:** [June 29, 2025, 8:42pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/11 "2025-06-29T20:42:03Z")

</div>

I wish you were more specific about what you did rather than assume everyone understands how to do what you did. If I understood what you did I wouldn’t need help T\_T

Where do I copy this line of code?

---

<div class="post-metadata">

**Author:** ![n1lknarf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n1lknarf](https://forums.unrealengine.com/u/n1lknarf)\
**Post date:** [June 29, 2025, 8:46pm UTC](https://forums.unrealengine.com/t/microsoft-visual-c-runtime-no-longer-automatically-included-in-v5-1-builds/758116/12 "2025-06-29T20:46:00Z")

</div>

For anyone wondering, in Custom Launch Profile, this command line would go in “additional command line parameters” under the “build” tab → “advanced settings”
