m trying to make a runtime exe creator (on the fly). i have an .exe that needs to create an another .exe or .dll from scratch, i just want to know what is the best method for this. im thinking of putting .exe or .dll hex codes into my executable in a string , and create binary file from it, but what if i want to patch it on runtime ? the entry points and size will change, everytime i want to create different .exe (say some variables must be different in all exes, like port numbers , program directory etc..) for this i must patch that codes on the fly. Do u guys know any good guide for this ?
Thank You