Re: Replace exe and dll in use

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

r_z_aret_at_pen_fact.com
Date: 06/10/04


Date: Thu, 10 Jun 2004 14:07:22 -0400

On Tue, 08 Jun 2004 13:03:40 +0200, Viviana Vc <vcotirlea@hotmail.com>
wrote:

>Hi all,
>
>I have 2 questions:
>
>1) As I know there is no way on Windows to replace a running exe, but
>somebody told me that this is doable, and I couldn't find any info on
>how could this be done programmatically. Is something like this
>possible? And if yes, how?

Not directly. But you can have an auxiliary program that stops your
main program, replaces it, and restarts it.

>
>2) My product has a dll that is used by multimple application from the
>system. Is there any way in which I could update this dll (without
>killing all the exe that have loaded this dll)? Or this is doable only
>over a reboot?

How about renaming the old DLL, copying in (or renaming) the
replacement, and letting each program start using the new version
whenever it restarted?

If you have a list of programs that you want to coerce, you could
close and restart them.

>If it's only over a reboot, how could I do the following: i have in the
>same dir dll and dll_new, how could I do in one step: delete dll and
>rename dll_new with dll?
>
>Thanks in advance,
>Viv

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com



Relevant Pages

  • Re: Replace exe and dll in use
    ... >1) As I know there is no way on Windows to replace a running exe, ... main program, replaces it, and restarts it. ... Is there any way in which I could update this dll (without ... How about renaming the old DLL, ...
    (microsoft.public.vc.language)
  • Re: Replace exe and dll in use
    ... >1) As I know there is no way on Windows to replace a running exe, ... main program, replaces it, and restarts it. ... Is there any way in which I could update this dll (without ... How about renaming the old DLL, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Replace exe and dll in use
    ... >1) As I know there is no way on Windows to replace a running exe, ... main program, replaces it, and restarts it. ... Is there any way in which I could update this dll (without ... How about renaming the old DLL, ...
    (microsoft.public.vsnet.general)
  • Re: Replace exe and dll in use
    ... >1) As I know there is no way on Windows to replace a running exe, ... main program, replaces it, and restarts it. ... Is there any way in which I could update this dll (without ... How about renaming the old DLL, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Replace exe and dll in use
    ... >>1) As I know there is no way on Windows to replace a running exe, ... Is there any way in which I could update this dll (without ... >How about renaming the old DLL, ... I can not restart only those, I will need a reboot anyhow, so I could ...
    (microsoft.public.dotnet.languages.vc)