RE: Create an .exe at runtime with .NET 2.0
- From: v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda Liu [MSFT])
- Date: Fri, 16 Feb 2007 09:32:54 GMT
Hi Andersch,
Sorry for my delayed reply.
Firstly, creating an executable file at runtime means you should create a
program first, which creates the executable file when it runs.
In your practice, since you already have a WinForm application to decrypt
the encrypted file, you could just write a program A to lanuch the existing
WinForm application and decypt the encrypted file. You needn't create
another executable file B which in turn lauches the existing WinForm
applicaion, when you run program A.
If you do need to do like that, a simple way is to write the code of the
program B first in VS, and then translate the code into CodeDOM, following
the MSDN sample I suggest to you in my first reply. It should not be a
difficult thing.
In additon, I don't think you need to embed the encrypted file into the
resources of the program B. The encrypted file can be a separate file.
Hope this helps.
If you have any question, please feel free to let us know.
BTW, I will be on a long vacation from the next Monday to Friday. During my
leave, my team mates will follow up with you and it may not in time. Sorry
for the inconvenience it may bring to you!
Sincerely,
Linda Liu
Microsoft Online Community Support
.
- References:
- RE: Create an .exe at runtime with .NET 2.0
- From: Linda Liu [MSFT]
- RE: Create an .exe at runtime with .NET 2.0
- From: andersch
- RE: Create an .exe at runtime with .NET 2.0
- Prev by Date: Re: Using Dispose() ... don't wait until GC kicks in.
- Next by Date: Re: Protected Member
- Previous by thread: RE: Create an .exe at runtime with .NET 2.0
- Next by thread: RE: Create an .exe at runtime with .NET 2.0
- Index(es):