Epic Self Publishing - How to add Common Redistributables

Epic rejected my Artifact and Binaries of my game on Epic Dev portal stating the following.

“”“The following components(s) are required to run this program:
Microsoft Visual C++ Runtime.”“”

I’m confused about this response as it has nothing to do with my game and only an issue with him not having Microsoft Visual C++ Runtime installed in his PC. They didn’t give me any explanation on how to add it on Dev portal either. And their documentation doesn’t seem to have any info on this either.

Does anyone know how to do that?

Hello, I think I understand the issue you are facing…

When I tried to upload my game to Steam it got declined because i didn’t have Microsoft Visual C++ Runtime checked as a requirement for running the game. I assume you are experiencing the similar issue with Epic Games.

So all in all: If anybody is to run your Unreal Engine game, they will need Microsoft Visual C++ Runtime installed their PC. You will need to select an option when uploading your game, so that Epic know that it needs to be installed with your game if it doesn’t already exist on a PC.

I hope this makes sense :slight_smile:

Thanks for the reply :slight_smile: Yes I understand. The issue here is I can’t find where to check Microsoft Visual C++ Runtime on Epic dev portal. I contacted Epic Support but they didn’t respond yet.

I just saw it’s in the documentation. Seems a little complicated though.

1 Like

If you don’t have the C++ source build installed, you will most likely have to go through this process outlined in the documentation:

Batch Script

If the preferred methods outlined above do not work for your product, you can use a batch file to conditionally check for the prerequisites being installed before passing through to your application.

While this method is straightforward to develop and offers flexibility, there are considerations. With this method, a Command Prompt window flashes briefly when users access your game from the Epic Games Launcher. Additionally, during a slow installation (longer than five minutes), your exchange code may expire before it is passed onto the application causing the product to be relaunched.
Process

To use this method, create a batch file to use as your executable as specified in BuildPatchTool. This batch file must check for the prerequisites, then forward the command line arguments to your application.

Example

The following batch file is a hypothetical UE3 title that requires the UE3Redist.exe installer to run on the user’s machine. The file is set up to run from the Binaries directory and includes the UE3Redist.exe installer in a Windows subdirectory.

reg query HKEY_CLASSES_ROOT\Installer\Products\70140BF22CB7C94419A535B0925B0EEF

    if %ERRORLEVEL% EQU 0 goto LAUNCH_UE3_GAME

    .\Windows\UE3Redist.exe

    :LAUNCH_UE3_GAME
    UE3Game.com %*

The BuildPatchTool setup for this is as follows:

BuildPatchTool … -mode=PatchGeneration -FeatureLevel=Latest -AppLaunch="Binaries\UE3Game.bat" …