How to make really "standalone" version of game?

If we try to run compiled UE4 game on fresh PC with newly installed Windows, we will have missing-dll problem:

135078-untitled.png

(from VirtualBox).

It is reasonable - most games requires installed DirectX drivers (and maybe Microsoft Visual C++ installed), so this is not weird - we can make engine lighter, without including all links in project. But - what if we need to make something on completely fresh platform?

My question is - am I able to make completely standalone .exe to run on any PC with new Windows, no dependencies required? I mean, do we have some ‘-static’ flag equivalent in Unreal Engine compiler? My question is because I really needed to give ready-to-go game for PC (actually it was meant to be mathematics mini-game to train), without administration privileges and any preparation for gaming.

Hello Ch3shireCat,

When you package out a game, it will come with the required pre-requisites in the following location:

WindowsNoEditor\Engine\Extras\Redist\en-us

Installing the pre-requisites listed there should be able to avoid any issues like this. Keep in mind that it could still cause errors like the one you showed as that can sometimes be the symptom of a corrupt installation, where it will need to be uninstalled and reinstalled as attempting to repair it rarely works.

These prerequisites will be required in any case, whether they are already installed or newly installed with your game.