NSIS/Contrib/NSISdl
2003-08-03 13:07:02 +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 Patch #781254 applied - thanks Andrey Cherezov 2003-08-03 13:07:02 +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 - Errors from JNetLib now show again 2003-05-27 18:47:18 +00:00
nsisdl.dsp Translatable NSISdl 2002-12-05 13:05:49 +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 quiet download 2003-05-05 13:29:57 +00:00
resource.h - NSISdl will now take the installer's style 2003-05-25 17:10:14 +00:00
Script1.rc - NSISdl will now take the installer's style 2003-05-25 17:10:14 +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.1 - 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.