Re: Replace exe and dll in use
r_z_aret_at_pen_fact.com
Date: 06/10/04
- Next message: David Browne: "Re: Urgent problem: Any help greatly appreciated"
- Previous message: Cepheus: "can't catch exceptions if winform is run from commandline"
- In reply to: Viviana Vc: "Replace exe and dll in use"
- Next in thread: Viviana Vc: "Re: Replace exe and dll in use"
- Reply: Viviana Vc: "Re: Replace exe and dll in use"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: David Browne: "Re: Urgent problem: Any help greatly appreciated"
- Previous message: Cepheus: "can't catch exceptions if winform is run from commandline"
- In reply to: Viviana Vc: "Replace exe and dll in use"
- Next in thread: Viviana Vc: "Re: Replace exe and dll in use"
- Reply: Viviana Vc: "Re: Replace exe and dll in use"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|