Archive: NSISdl bug?


NSISdl bug?
I tried using NSISdl with an invalid URL to see what it would do.
The error message that is returned has unprintable ASCII characters in it.
It's as if it is pointing to freed or uninitialized memory.
This is the code I wrote:

NSISdl::download /TIMEOUT=30000 "http://ardownload.adobe.com/pub/adobe/acrobatreader/win/5.x/5.1/AcroReader51_ENU.exe1" "$TEMP\AcroReader51_ENU.exe"
StrCmp "$0" "Success" done
DetailPrint "$0"
done:

The URL is incorrect, it should be:
"http://ardownload.adobe.com/pub/adobe/acrobatreader/win/5.x/5.1/AcroReader51_ENU.exe"
With the correct URL, the plugin works great.
However, shouldn't it have a meaningful error message for bad URLs?
---
Thanks


The current CVS version of NSISdl does not write the return value to $0, but pushes it to the stack, like other plugins.


That explains it. However, the Readme.txt needs to be updated to reflect this.
---
Thanks


The Readme has already been updated. You probably got this info from the old Readme file.


Is this in the 2.0b1 release or the latest dev snapshot?


Latest development snapshot (CVS).