We would like to offer our client the opportunity to create customized exes, based on ours, for our clients.
i.e., basically, the ability to make an exe copy with another xml configuration file built into it. โInclude it in the installationโ is not an option - we want it to look as if it was done for our client clients.
I'm currently going to write a dll at runtime, including a resource (using AssemblyBuilder), and then call ILMerge to insert it into the final exe, but it's a little more hacky than I would like.
So, this is a tall question, but it might be worth asking: is there a .NET library that allows you to modify .NET exe resources that can avoid the DLL bit that stores the resource embedded by ILMerge?
Or, conversely, is there a better approach to this that still meets the stated goals?
Mania source share