public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Dave Hooper" <dave@rebuzz.org>
To: cygwin@cygwin.com
Subject: Re: Setup.exe
Date: Mon, 13 Jan 2003 03:04:00 -0000	[thread overview]
Message-ID: <51789.213.38.17.50.1042046662.squirrel@raq299.uk2net.com> (raw)

>>> Isn't that kinda up to the user. When you finish downloading new
>>> packages you kill your internet connection as cygwin setup won't
>>> need it.
>
> Autodialling isn't something that (most) programs do. Windows does it for
> them. So setup doesn't know if a connection was made on it's account or
> not.

I'd agree that it isn't something most programs do. I'd disagree if you
were to say "Autodialling isn't something that most programs need to do",
however. Windows cannot know that setup.exe has 'finished' with the
internet connection (I believe Windows will by default wait until
setup.exe has exitted before closing the dialup connection) unless
setup.exe gives Windows a hint.  I'm almost utterly convinced that a
sequence in setup.exe a bit like the following will do the trick
admirably.

DWORD dwNetAccess;
InternetGetConnectedState(&dwNetAccess,0);
if (dwNetAccess & INTERNET_CONNECTION_MODEM)
{
  // autodial now.  windows will update a reference count
  // if the connection is already open
  InternetAutoDial(INTERNET_AUTODIAL_FORCE_ONLINE, &hwndSetupDialog);
}

[snip - setup.exe goes and downloads the packages]

if (dwNetAccess & INTERNET_CONNECTION_MODEM)
{
  // hang up.  windows will decrease a reference count.
  // Can't remember if Windows prompts the user if they
  // wish to close the dialup connection when the reference
  // count reaches zero, or if Windows just does it anyway!
  InternetAutodialHangup(0);
}


I'm speculating, I'll try it when I get a chance.  Of course this relies
on behaviour built into Internet Explorer 4 and newer (more accurately
built into the version of WinInet.dll shipping with IE 4, or a newer
version of that dll) but setup.exe can easily test for the presence of
this and do what it currently does if it can't find the functions or can't
find wininet.dll in the path.

> Isn't the change from downloading to installing info enough?

Some people won't notice that.  A larger issue is if you go away and make
some tea.  I for one don't stare at setup.exe while it downloads
eighty-six megabytes of information on a 33.6K modem.  (I do sit and watch
defrag for hours on end though, but that's just me)

> http://sources.redhat.com/cygwin-apps/setup.html

Thanks.  Will play.


d

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

             reply	other threads:[~2003-01-08 17:24 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13  3:04 Dave Hooper [this message]
2003-01-13  3:23 ` Setup.exe Gary R. Van Sickle
2003-01-13  3:23   ` Setup.exe Christopher Faylor
2003-01-13  3:23     ` Setup.exe Tommy Butler
2003-01-13  3:23     ` Setup.exe Tommy Butler
2003-01-13  3:30       ` Setup.exe Warren Young
2003-01-13  3:30         ` Setup.exe Igor Pechtchanski
2003-01-13  3:23 ` Setup.exe Robert Collins
2003-01-13  3:23   ` Setup.exe Gary R. Van Sickle
2003-01-13  3:23     ` Setup.exe Robert Collins
2003-01-13  3:23       ` Setup.exe Gary R. Van Sickle
2003-01-13  3:23         ` Setup.exe Robert Collins
  -- strict thread matches above, loose matches on Subject: below --
2006-06-11 22:15 setup.exe Richard Foulk
2003-04-30 20:44 setup.exe DEEPA SIVASANKARANE
2003-04-30 17:05 setup.exe DEEPA SIVASANKARANE
2003-04-30 17:50 ` setup.exe Igor Pechtchanski
2003-04-30 16:38 setup.exe DEEPA SIVASANKARANE
2003-04-30 16:45 ` setup.exe Max Bowsher
2003-03-06 14:37 setup.exe Matthias Lehner
2003-03-06 16:43 ` setup.exe Igor Pechtchanski
2003-03-06 16:50   ` setup.exe Max Bowsher
     [not found] <Pine.LNX.4.44.0301090905060.2932-100000@magetower.office.aol.com>
2003-01-13  3:30 ` Setup.exe Gary R. Van Sickle
2003-01-13  3:04 General comments Elfyn McBratney
2003-01-13  3:23 ` Hannu E K Nevalainen (garbage mail)
2003-01-13  3:30   ` Setup.exe Dave Hooper
2002-05-04 16:10 Setup.exe Robert Collins
2002-05-04 11:50 Setup.exe Aaron J. Outhier
2002-02-10 19:38 setup.exe Gareth Pearce
2002-02-10 19:04 setup.exe Gareth Pearce
2002-02-10 19:22 ` setup.exe Christopher Faylor
2002-02-10 19:27 ` setup.exe Charles Wilson
2002-02-10 18:31 setup.exe Michael
2002-02-10 18:40 ` setup.exe Christopher Faylor
2001-12-05  6:23 setup.exe John Daniel Doucette
2001-12-05  6:28 ` setup.exe Robert Collins
2001-11-11  8:26 setup.exe Rakic Sasa
2001-11-11  8:26 ` setup.exe Robert Collins
2001-09-14  3:20 Setup.exe C
2001-09-14  8:40 ` Setup.exe Christopher Faylor
2001-09-14 15:09 ` Setup.exe Mark Himsley
2001-09-14 15:55   ` Setup.exe C
2001-09-15  2:35     ` Setup.exe Mark Himsley
2001-09-15 10:03       ` Setup.exe Christopher Faylor
2001-09-03  1:21 setup.exe zanac2
2001-09-03 14:57 ` setup.exe Gerrit P. Haase
2001-08-28  0:00 setup.exe Goren Il
2001-08-28  4:58 ` setup.exe Gerrit P. Haase
2001-08-28  5:34   ` setup.exe Goren Il
2001-08-09 21:38 setup.exe Roger Dahl
2001-08-09 22:30 ` setup.exe Charles Wilson
2001-08-10  9:46   ` setup.exe Dennis McCunney
2001-04-11 13:31 setup.exe Davis Yokana
2001-04-11 14:16 ` setup.exe Christopher Faylor
2001-04-11 14:24 ` setup.exe DJ Delorie
2000-08-29  6:48 setup.exe DJ Delorie
2000-08-29  4:38 setup.exe Jens Yllman
2000-08-30 13:40 ` setup.exe Brian Keener
2000-06-21  8:34 setup.exe Justin Whitcomb
2000-06-21  8:35 ` setup.exe DJ Delorie
2000-06-21  8:50 ` setup.exe Tim Prince
2000-06-08  9:38 setup.exe Heinz-Juergen Oertel
2000-06-08 11:03 ` setup.exe DJ Delorie
     [not found] <200005201928.MAA10056@cygnus.com>
2000-05-20 14:37 ` setup.exe Chris Faylor
2000-05-20 12:27 setup.exe Paul Garceau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51789.213.38.17.50.1042046662.squirrel@raq299.uk2net.com \
    --to=dave@rebuzz.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).