Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 28th June 2009, 15:12   #1
realpuff
Junior Member
 
Join Date: Jun 2009
Posts: 2
Angry How to use mirror download link with Inetc::get if the first link fail?

Hi,

Please take a look at this script:

Section "Dummy Section" SecDummy

SetDetailsView hide
inetc::get "http://mydomain1.com/setup.exe" "$PLUGINSDIR\setup.exe" /end
Pop $1 # return value = exit code, "OK" means OK
MessageBox MB_OK "Download Status: $0"

SectionEnd


and please let me know how I can update it to use a secondary (mirror) link "http://mydomain2.com/setup.exe" as an alternative file download in case that the first one is unavailable?

Same time I will preffer an popup message (with personalizable text message) to be displayed only in the case when both links are not available.

Thank you!

Last edited by realpuff; 28th June 2009 at 16:18.
realpuff 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