How are self-extracting executable files made?

There are many programs that allow you to put several files together and generate an executable file that has the necessary code to extract them. One way or another, these files are inside the executable file. I am interested in doing the same; how it's done?

FYI, I'm mainly interested in Windows.exe files, if that matters.

+3
source share
5 answers

Take a look at this: Article

+2
source

Perhaps you could save the file / files in a resource, compile it into exe, and then use some code in exe to extract it to a file.

t

http://www.codeproject.com/KB/winsdk/binaryresources.aspx

+1

.exe (zip, rar, tar ..), , , , .

, , .

Windows, , , "" .

+1

, pkzip winzip, . , .

0

UPX is a well-known packer for Windows.EXE, which can be found here in WikiPedia. And here is the main sourceforge site for UPX.

Hope this helps, Regards, Tom.

0
source

Source: https://habr.com/ru/post/1732455/


All Articles