Archive: Download from random mirrors


Download from random mirrors
I have made a function to download a file from a max of 10 mirrors, the first mirror is selected at random (for bandwidth balace), if it fails then selects the next mirror in the list, and if fails the next, ... If none of the mirrors works, then the function returns with the last NSISdl error.

I think it works well, but please try it and tell me if it works as expected

(Sorry for my really bad english)


This does the same thing:

http://nsis.sourceforge.net/archive/...instances=0,11

-Stu


Well, the diference is that my implementation uses functions, not macros, and the first mirror is selected at random.


Have a way to use unlimited url using Callback Functions. If you don't know, they are custom functions a user uses to return values to original function that called it. If you permit me, I can base your work, to create one with unlimited url support, I have time in the weekend.

(Now I'll put a very good new version of "Wait file execution with parameters" in the Archive!)


It is now here, but I have to do some changes to support Dialer plugin too, so I didn't put it in Archive yet.

It don't have much information about the callback function, base on the original to put new mirror urls:


Looks a lot cleaner!

GW

-Stu


This one have /TIMEOUT support for each link, and the download link simplified (only shows the site to be downloaded).

This one will be posted in Archive soon. Not tested so much: