ElvenProgrammer
26th June 2005 18:59 UTC
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.txtSorry to post 2 question in a day, but I really like NSIS and want to continue to use it :)
Mæster
26th June 2005 19:15 UTC
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.
ElvenProgrammer
26th June 2005 19:24 UTC
Ok it works now :tinfoil:
Sorry if I disturbed you with this stupid question.
Afrow UK
26th June 2005 19:31 UTC
Yeh, I recommend InetLoad too as it gets around the firewall problems that NSISdl seems to have.
-Stu