How to combine 2 exe?

Hello,

I'd like to write a tool to combine 2 .exes into 1.

More specifically, if I combine calc.exe and cmd.exe, the resulting .exe should open calc.exe and cmd.exe when I execute it.

How do I do that?

Thanks.
I don't believe the executable file format nor the system loader are capable of doing that.
If you intend to write your own EXE that stores multiple executable, extract them on a temporary location and then executes it then it is perfectly possible.

If you intend to not write any code, then use NSIS which does all this for you:
http://nsis.sourceforge.net/
Thank you for your help modoran.
Topic archived. No new replies allowed.