NSIS/Contrib/NSISdl
2005-05-21 13:05:16 +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 #1008509 - Fixed compilation of plugin NSISdl under VS.NET 2004-09-17 22:53:34 +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 applied patch #1164307 - Fixes to allow building Contrib/ on debian (minus Makefiles) 2005-03-17 21:26:59 +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 added /NOIEPROXY (based on memph's code) 2004-09-02 21:07:12 +00:00
SConscript cppused = 1 so stdlib is included when needed 2005-05-21 13:05:16 +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.

PROXIES
-------

NSISdl supports only basic configurations of proxies. It doesn't support
proxies which require authentication, automatic configuration script, etc.
NSISdl reads the proxy configuration from Internet Explorer's registry key
under HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings. It
reads and parses ProxyEnable and ProxyServer.

If you don't want NSISdl to use Internet Explorer's settings, use the
/NOIEPROXY flag. /NOIEPROXY should be used after /TRANSLATE and
/TIMEOUT. For example:

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

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.