setup.exe sucks

Igor Pechtchanski
Fri Dec 10 00:55:00 GMT 2004

On Thu, 9 Dec 2004, Christopher Faylor wrote:

> On Thu, Dec 09, 2004 at 05:25:09PM -0700, Warren Young wrote:
> >Warren Young wrote:
> >>stop running services before starting the upgrade.
> >
> >Thinking more about it, couldn't you just call LoadLibrary() on the
> >full path to cygwin.dll, and if that succeeds, get the process list
> >from it and send out kill signals?
> Time for another sigh:  Sigh.
> You can't use LoadLibrary with cygwin and I really wasn't suggesting that
> we modify the DLL or introduce new functionality to accommodate setup.
> That said, however, you could iterate over all of the running processes
> and find out which was using cygwin1.dll.  You don't need cygwin for
> that.
> In fact, I was just playing around with some source code to do this
> yesterday.  It is attached, for the curious.
> cgf

I may be barking up the wrong tree, but I seem to recall complaints that
code like this may hang when certain types of firewall/anti-virus software
are used.  It also may require administrative privileges on the machine.
As time permits, I'll try to dig up evidence to either confirm or
contradict this.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

More information about the Cygwin-apps mailing list