delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/15/18:32:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00fe01c1cc79$e7afc5d0$0100a8c0@advent02>
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin AT cygwin DOT com>
References: <FC169E059D1A0442A04C40F86D9BA760014BC4 AT itdomain003 DOT itdomain DOT net DOT au> <4 DOT 3 DOT 1 DOT 2 DOT 20020315150903 DOT 0169bc60 AT pop DOT ma DOT ultranet DOT com> <3C927E56 DOT 2060909 AT Salira DOT com>
Subject: Re: cygwin.com suggestions
Date: Fri, 15 Mar 2002 23:34:07 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> >>>>2) Include in the FAQ (or somewhere) a section on "How to Safely
Update the Cygwin dll". Probably just "shut down all cygwin apps, including
daemons", but it would be useful to know for sure.
> >>>>
> >>>The next release of setup.exe automatically address's this and will
> >>>replace in-use .dll's.
> >>>
> >>Really? How does it do that? Because I was under the impression that if
a program was running you cannot replace it's .exe file (or .dll file)
because it was opened exclusively by Windows. How do you get around that?
> >
> > Same way as Windows installers work.  Just schedule the DLL to be moved
in
> > after reboot.
>
> But that doesn't really replace the current DLL. IOW the changes are not
> effective until one reboots. Personally I find this a crummy way to do
> things but perhaps that's all that can be done.
Under Win NT/2k/XP it is actually possible to replace a DLL file that's
currently in use without rebooting. You rename the existing file to
something else, then copy the new file in its place. Then add the old file
to the MoveFileEx list of files to delete on reboot. That way the new file
is installed straight away.

Regards
Chris



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019