Re: Load EXE and run from memory - is it possible in C# ?

From: Erik Frey (eriksjunk_at_hotmail.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 15:43:21 -0600


"Just D." <no@spam.please> wrote in message
news:6VUNc.1115$wz.778@fed1read01...
> Hi All,
>
> I have a question. I need to load some EXE file into memory and then find
a
> way how to run it from the memory without saving to disk. I know that it
was
> possible in C++ to execute any code already loaded into memory. What about
> C#? Does anybody know how to do that?
>
> The main purpose - to download a small installer from my www and then
using
> this installer to download some big installer (like SETUP.EXE) and run it
> without saving to a client disk. That's a requirement, the purpose is to
> keep the client always up-to-date and don't allow him to keep old
installer
> files on the remote machine. The small installer should test the remote
> application version and understand what version is running to stop it and
> update if it's needed.
>
> Thanks,
> Dmitri.

Why not use Assembly.LoadFrom? It can load assemblies from the web:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionassemblyclassloadfromtopic1.asp

Erik



Relevant Pages

  • Load EXE and run from memory - is it possible in C# ?
    ... I need to load some EXE file into memory and then find a ... way how to run it from the memory without saving to disk. ... The main purpose - to download a small installer from my www and then using ...
    (microsoft.public.dotnet.languages.csharp)
  • exe file header
    ... i want to know how the exe file load in memory. ... i have an exe file and i should load it in memory myself (not dos do ...
    (comp.lang.asm.x86)
  • Re: exe file header
    ... marjan wrote: ... i want to know how the exe file load in memory. ...
    (comp.lang.asm.x86)
  • Assemply and using Activator.CreateInstance
    ... If I load an Assembly (.DLL file) from Process (.Exe file) ... remain in memory after process is exited. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Blinker 7.0
    ... it is too large to load into memory as the exe file is 2.5mb where the ... blinker file is about 1.2mb. ...
    (comp.lang.clipper)