Does anyone know if it is possible to make a program (written in C++) generate a .exe-file? For example, let’s say a user wants to have a generated .exe that executes a web browser. In the program he/she clicks on Firefox, IE, or Chrome from a set of checkboxes and presses generate. The idea is now that this new generated exe-file now will start the seleced web browser each time the user starts the generated exe.
The program is planned to be written as a Windows Application in VS 2010.
Thanks for any help.
The easiest solution to this would probably be to have an already compiled executable, but with the name of the actual program you want to run empty. Then patch the file to put the proper path to the program you want to run.
But like I said in my comment, if you just want to start another program it would be much easier to just create a shortcut instead.