Archive: NSISdl bug?


I tried using NSISdl for downloading file.
This my code:


StrCpy $dir "F:\test"
NSISdl::download "http://strim-tech.com/vcom.zip" "$dir\vcom.zip"

Pop $temp
StrCmp $temp "success" okk
MessageBox MB_OK|MB_ICONSTOP "Download failed: $temp"
Quit
okk:
ExecShell "open" '"$dir\vcom.zip"'


When I include it in the section all work.
Then I try put it in mui_page_customfunction_pre of next (finish) page (or _leave for instfiles page). If I move installer window or minimize it -> application become "Not ressponding".

Is this bug?

This is limitation :)
NSISdl attempts to create additional progress bar on the dialog, this is not possible on the 'pre' step, do this in the 'show' page function. And if plug-in is attached to dialog installer cannot destroy current dialog and go to next one ('leave' function). You cannot use NSISdl in the .onInit function - installer not created any windows yet. InetLoad in the /popup /banner or /silent mode should work between pages and in .onInit func. Latest the greatest ;) http://forums.winamp.com/showthread....d&pagenumber=2
But both plug-ins return when download finished or error occured (/nounload not helps, separate thread in the plug-in for IO only), so in the /silent mode this looks like 'no responce'.


Split from unrelated thread.