Archive: NSISdl...doesn't want to work


NSISdl...doesn't want to work
I copied this piece of code form NSIS CVS repository:

NSISdl::download_quiet "http://themanaworld.org/updates.txt"
Pop $TEMP1

StrCmp $TEMP1 "success" ReadVersion
MessageBox MB_OK|MB_ICONSTOP "Download failed: $TEMP1."
Quit
but it doesn't seems to work, it says:

"Download failed: unable to open ." :cry:

The file should be reachable I guess:

http://themanaworld.org/updates.txt

Sorry to post 2 question in a day, but I really like NSIS and want to continue to use it :)

You have to specify where to download your file. Just like the following:

NSISdl::download_quiet "http://themanaworld.org/updates.txt" "$PLUGINSDIR\updates.txt"

BTW: There is a also a new plugin for downloading files, its called inetload.

Ok it works now :tinfoil:
Sorry if I disturbed you with this stupid question.


Yeh, I recommend InetLoad too as it gets around the firewall problems that NSISdl seems to have.

-Stu