Re: [Help] Embed data into compiled executable
I would like to pack multiple data into 1 single .exe file how do i do this?
ex. i have data\gg.data , data\config\files.ini and games.exe that read those files.
Please guide me the way.
Edit: ok so i have use some resource editor program to add data into that executable file.
but it still read data from the actual path, do i need to hex edit .exe to change path or something?
There are many ways to get your thingy done.
The most common way is to do such things before building applications, so in the development process. In case you have the source you can do it on different ways, depends on your programming language.
I bet, in your case you are looking for a backward solution. In this case there are programs to give you the suspected success. This depends on the system, language and format the application and content is of.
The most successful way is the contrary to the above near-to-code solution, so a file based solution. An application that extracts your files to a temp directory (%temp% or %appdata%) and overwrites the data or not, then starts your game.exe. This is possible with many programs such as WinRAR (SFX-self-extracting-archive). This, however, will take so much time when your files are large.
The best solution is something between it, a wrapper application who holds all the data uncompressed, without extracting it anywhere, just simply execute it. I was looking for something like that long time ago, too. But I never found a real solution that combines the files without compression + to uncompress it before runtime.
Well nowadays ... I have not tested it, but might A.F.7 is what you are looking for:
A.F.7 Merge your files - Software Informer. A.F.7 Merge your files 1.3 is a program that merges several files into one. (check the video)
PS: You should not put any INI files into it, since they mostly hold settings that could be changed.