Adding files to an EXE
Posted on 2000-03-20
I need to write a program which will install an EXE onto a PC. I need to write a "stub" program which asks all the question (like where to copy the file too), and does the actual copying.
That part is easy. The tricky part is, how can I, at run time, add binary data to the end of the OPENED program? For example. My program is called UDSERVER.EXE. I need to add a file called VSLICENCE.KEY to this EXE. Is there a way of doing this at all?
Previously I would build the key file into a resource, add that to the project and recompile. This is OK, but I would prefer to make it all self contained.