NSIS/Contrib/NSISdl
kichik f98092a996 no longer needed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3445 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-01 22:11:42 +00:00
..
asyncdns.cpp Smaller 2002-12-04 20:05:35 +00:00
asyncdns.h This commit was generated by cvs2svn to compensate for changes in r2, 2002-08-02 10:01:35 +00:00
connection.cpp Smaller 2002-12-04 20:05:35 +00:00
connection.h This commit was generated by cvs2svn to compensate for changes in r2, 2002-08-02 10:01:35 +00:00
httpget.cpp Crash fixes, including firewall problems, many Optimizations 2003-12-02 01:13:35 +00:00
httpget.h This commit was generated by cvs2svn to compensate for changes in r2, 2002-08-02 10:01:35 +00:00
License.txt updated readme 2003-02-19 21:46:08 +00:00
netinc.h Smaller 2002-12-04 20:05:35 +00:00
nsisdl.cpp All windows are now created in the main thread where the main dialog is created. This should fix any weird user32.dll crashes caused by different types of messages sent to the main dialog during destruction of the NSISdl dialog. This also reduces the size of the DLL by 0.5KB :) 2004-02-01 18:52:06 +00:00
nsisdl.dsp All windows are now created in the main thread where the main dialog is created. This should fix any weird user32.dll crashes caused by different types of messages sent to the main dialog during destruction of the NSISdl dialog. This also reduces the size of the DLL by 0.5KB :) 2004-02-01 18:52:06 +00:00
nsisdl.dsw This commit was generated by cvs2svn to compensate for changes in r2, 2002-08-02 10:01:35 +00:00
ReadMe.txt All windows are now created in the main thread where the main dialog is created. This should fix any weird user32.dll crashes caused by different types of messages sent to the main dialog during destruction of the NSISdl dialog. This also reduces the size of the DLL by 0.5KB :) 2004-02-01 18:52:06 +00:00
util.cpp Smaller 2002-12-04 20:05:35 +00:00
util.h Smaller 2002-12-04 20:05:35 +00:00

NSISdl 1.3 - HTTP downloading plugin for NSIS
---------------------------------------------

Copyright (C) 2001-2002 Yaroslav Faybishenko & Justin Frankel

This plugin can be used from NSIS to download files via http.

To connect to the internet, use the Dialer pluin.

USAGE
-----

NSISdl::download http://www.domain.com/file localfile.exe

You can also pass /TIMEOUT to set the timeout in milliseconds:

NSISdl::download /TIMEOUT=30000 http://www.domain.com/file localfile.exe

The return value is pushed to the stack:

  "cancel" if cancelled
  "success" if success
  otherwise, an error string describing the error

If you don't want the progess window to appear use NSISdl::download_quiet.

Example of usage:

NSISdl::download http://www.domain.com/file localfile.exe
Pop $R0 ;Get the return value
  StrCmp $R0 "success" +3
    MessageBox MB_OK "Download failed: $R0"
    Quit

For another example, see waplugin.nsi in the examples directory.

TRANSLATE
---------

To translate NSISdl add the following values to the call line:

/TRANSLATE downloading connecting second minute hour plural progress remianing

Default values are:

  downloading - "Downloading %s"
  connecting - "Connecting ..."
  second - "second"
  minute - "minute"
  hour - "hour"
  plural - "s"
  progress - "%dkB (%d%%) of %dkB @ %d.%01dkB/s"
  remaining -  "(%d %s%s remaining)"

/TRANSLATE must come before /TIMEOUT.