Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th March 2005, 15:00   #1
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
I tried using NSISdl for downloading file.
This my code:

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?
glory_man is offline   Reply With Quote
Old 17th March 2005, 16:14   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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'.

Last edited by Takhir; 17th March 2005 at 16:32.
Takhir is offline   Reply With Quote
Old 17th March 2005, 16:22   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Split from unrelated thread.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump