ReadMe.txt 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. NSISdl 1.3 - HTTP downloading plugin for NSIS
  2. ---------------------------------------------
  3. Copyright (C) 2001-2002 Yaroslav Faybishenko & Justin Frankel
  4. This plugin can be used from NSIS to download files via HTTP.
  5. Note: HTTPS is not supported, only plain HTTP!
  6. To connect to the internet, use the Dialer plugin.
  7. USAGE
  8. -----
  9. NSISdl::download http://www.domain.com/file localfile.exe
  10. You can also pass /TIMEOUT to set the timeout in milliseconds:
  11. NSISdl::download /TIMEOUT=30000 http://www.domain.com/file localfile.exe
  12. The return value is pushed to the stack:
  13. "cancel" if cancelled
  14. "success" if success
  15. otherwise, an error string describing the error
  16. If you don't want the progress window to appear, use NSISdl::download_quiet.
  17. Example of usage:
  18. NSISdl::download http://www.domain.com/file localfile.exe
  19. Pop $R0 ;Get the return value
  20. StrCmp $R0 "success" +3
  21. MessageBox MB_OK "Download failed: $R0"
  22. Quit
  23. For another example, see waplugin.nsi in the examples directory.
  24. PROXIES
  25. -------
  26. NSISdl supports only basic configurations of proxies. It doesn't support
  27. proxies which require authentication, automatic configuration script, etc.
  28. NSISdl reads the proxy configuration from Internet Explorer's registry key
  29. under HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings. It
  30. reads and parses ProxyEnable and ProxyServer.
  31. If you don't want NSISdl to use Internet Explorer's settings, use the
  32. /NOIEPROXY flag. /NOIEPROXY should be used after /TRANSLATE and
  33. /TIMEOUT. For example:
  34. If you want to specify a proxy on your own, use the /PROXY flag.
  35. NSISdl::download /NOIEPROXY http://www.domain.com/file localfile.exe
  36. NSISdl::download /TIMEOUT=30000 /NOIEPROXY http://www.domain.com/file localfile.exe
  37. NSISdl::download /PROXY proxy.whatever.com http://www.domain.com/file localfile.exe
  38. NSISdl::download /PROXY proxy.whatever.com:8080 http://www.domain.com/file localfile.exe
  39. TRANSLATE
  40. ---------
  41. To translate NSISdl add the following values to the call line:
  42. /TRANSLATE2 downloading connecting second minute hour seconds minutes hours progress
  43. Default values are:
  44. downloading - "Downloading %s"
  45. connecting - "Connecting ..."
  46. second - " (1 second remaining)"
  47. minute - " (1 minute remaining)"
  48. hour - " (1 hour remaining)"
  49. seconds - " (%u seconds remaining)"
  50. minutes - " (%u minutes remaining)"
  51. hours - " (%u hours remaining)"
  52. progress - "%skB (%d%%) of %skB @ %u.%01ukB/s"
  53. The old /TRANSLATE method still works for backward compatibility.
  54. /TRANSLATE downloading connecting second minute hour plural progress remianing
  55. Default values are:
  56. downloading - "Downloading %s"
  57. connecting - "Connecting ..."
  58. second - "second"
  59. minute - "minute"
  60. hour - "hour"
  61. plural - "s"
  62. progress - "%dkB (%d%%) of %ukB @ %d.%01dkB/s"
  63. remaining - " (%d %s%s remaining)"
  64. /TRANSLATE and /TRANSLATE2 must come before /TIMEOUT.