Search code examples
c#.netwinformswin32-process

Generate an .exe file with embedded settings


I have a window application which performs some tasks, One of which is opening some files and we all know .net provides exe file for the application, which can be used as click to start. I am calling this application application1.

Now I want to generate one more window application(simple exe), let us call it application2, which will open a form with some options(say the names of the files to be opened by application1) and a generate button.

On clicking the generate button, it should generate the exe file for the application1 with the data passed from application2.

Please suggest how can I do it.

EDIT I need to generate exe which will be available on different systems which will perform some task on regular intervals. and the interval colud be different for different computers. so I am asked to generate which will accept the time interval and will generate the exe for that interval


Solution

  • I think what your looking for is for application1 to be able to receive command line arguments and application2 to allow you to pick files and run application1 and pass in those arguments.

    I don't think its wish to be generating .exe's