Modify Emdeded String in C# compiled exe

Posted by nitefrog on Stack Overflow See other posts from Stack Overflow or by nitefrog
Published on 2010-04-30T06:00:25Z Indexed on 2010/04/30 6:07 UTC
Read the original article Hit count: 309

I have an issue where I need to be able to have a compiled exe ( .net 3.5 c# ) that I will make copies of to distribute that will need to change a key for example before the exe is sent out.

I cannot compile each time a new exe is needed. This is a thin client that will be used as part of a registration process.

Is it possible to add a entry to a resource file with a blank value then when a request comes in have another application grab the blank default thin client, copy it, populate the blank value with the data needed.

If yes how? If no do you have any ideas? I have been scratching my head for a few days now and the limitation as due to the boundaries I am required to work in.

The other idea I has was to inject the value into a method, which I have no idea how I would even attempt that.

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about executable