且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以编程方式将两个exe文件合并为一个

更新时间:2023-02-22 12:44:05

从理论上讲,这是可能的,但需要您付出一些努力.

Theoretically this is possible, but it will take some effort from your side.

您可以将数据附加到exe文件,这是自解压档案的工作方式.但是,您将需要自己的数据格式,类似于文件系统,因为您只有一个平面的.exe文件.
请参阅这篇Microsoft文章(有关Google的更多信息)

You can append data to an exe file, this is how self extracting archives work. However, you'll need your own data format, similar to a file system, because you've got just one flat .exe file.
See this Microsoft article (there's a lot more on google) http://support.microsoft.com/?scid=kb%3Ben-us%3B84062&x=12&y=13

您要打包两个文件的exe文件必须解压缩这些文件并最终可以运行它们.

The exe you're packing your two files in must then extract those files and can finally run them.

祝你好运.