Skip to content
⌘ NSIS Forum Archive

Download a file using NSISdl

5 posts

Mohamaed#

Download a file using NSISdl

I am trying to download a file which i added to my drop box.I am using NSISdl command.The nsis shows connecting for sometime and it completes without downloading the exe.But when I enter the link in the address bar, it downloads automatically.Can this be done via NSIS.
The code I am using to download is

NSISdl::download "http://www.dropbox.com/s/m8nkmxd6u4moe28/vcredist_x86.exe?dl=1" vcredist_x86.exe
Yathosho#edited
I have come across a support request for downloading a file from Dropbox using wget, in which the the use of the --no-check-cert flag was recommended.

You can try the same using InetC with the /WEAKSECURITY switch to ignore the certificate check.

inetc::get /WEAKSECURITY "http://www.dropbox.com/s/m8nkmxd6u4moe28/vcredist_x86.exe?dl=1" vcredist_x86.exe
(not on Windows, couldn't test this!)
Anders#
Works fine for me:

Section
InitPluginsDir
inetc::get "https://www.dropbox.com/s/m8nkmxd6u4moe28/vcredist_x86.exe?dl=1" "$PluginsDir\vcredist_x86.exe" /END
Pop $0
DetailPrint $0
SectionEnd