Archive: Problem with inetload


Problem with inetload
  Hello.

Sorry for my English from the beginning.

I try to download files from the web during installation, but when I intentionally make disconnection (just turn off modem) nothing happens after defined by /TIMEOUT parameter time.

InetLoad::load  /TIMEOUT 5000 /RESUME "" "http://mydomain/myfile" "$TEMP\\myfile"

>Pop $0
MessageBox MB_OK "Download Status: $0"
In 10-12 seconds appears my MessageBox with the text "OK"

Question: How to detect that connection is broken when downloading was started?

Thank you for your answers.

Thanks, oldfriend. I've patched inetc for LAN cable disconnect situation - WinInet returns EOF this case :) But for static files only (content-length header comes from server). Inetc is more stable then InetLoad (may be it's time to mark InetLoad 'depricated'), so please use Inetc.

inec::get /TIMEOUT 5000 /RESUME "" "http://mydomain/myfile" "$TEMP\myfile"
Pop $0

Thank you, Takhir, very much :)