Embed dlls to .exe

Hello,
I would like to ask you, If is It possible to build app on Windows and the app (exe) will be only one file and all dlls will be embed in that .exe.

Is It possible or I have to have all dlls in same folder? Probably I didnt search very well about exporting app on Windows, so If you can post some link I will be happy.

Thank you

There’s not a builtin way to put all the .dll’s inside the .exe. You can probably put them in as executable resources using some windows tools. Not sure how to use DLL’s that way though, is that a thing?

As for bundling the .dll’s with the .exe, you should use the project setting ‘project.bundle_resources’:

game.project:

[project]
...
bundle_resources = /res

And in your project, you’ll have a folder named /res/x86_64-win32/where your .dll’s are located. These will then be copied to your bundle folder.

1 Like

Not really worth it to use the programs which can bundle exes and dlls and other files together into a single exe. Not many if any consumers care anymore. Just use an installer maker like Inno Setup for distribution and 99.99% of Windows users will be happy and will never look at the game’s install folder.

2 Likes