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

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
From: "Stephano Mariani" <sk DOT mail AT btinternet DOT com>
To: "'Chris January'" <chris AT atomice DOT net>, <cygwin AT cygwin DOT com>
Subject: RE: cygwin.com suggestions
Date: Fri, 15 Mar 2002 23:37:39 -0000
Message-ID: <001701c1cc7a$67ee4730$0200a8c0@sknet01>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
In-Reply-To: <00fe01c1cc79$e7afc5d0$0100a8c0@advent02>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal

You cannot rename the existing file if it is in use. I found out the
hard way :)

Stephano Mariani

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
Behalf
> Of Chris January
> Sent: Friday, 15 March 2002 11:34 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: cygwin.com suggestions
> 
> > >>>>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/




--
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