Archive: Distrubution of NSISdl


Distrubution of NSISdl
When I'm running using NSISdl to download from a random (or not random) mirror, it works all okay on XP, but for some reason it just does not run under 98 or 2000

I have a virgin 98 and 2000 installation as a test bed.

Any ideas?


What is the error code?


Not getting an error code.

Here is the code:

# Downloads NSIS 2.0 Beta 3a from a max of 10 mirrors

Push "http://domain/Setup.exe"
Push 1
Push "$EXEDIR\Setup.exe"
Call DownloadFromRandomMirror
Pop $0

StrCmp $0 "cancel" 0 +3
MessageBox MB_OK "Download cancelled"
Goto End
StrCmp $0 "success" 0 +3
MessageBox MB_OK "Download OK"
StrCpy
Goto End
MessageBox MB_OK "Error $0"
End:


At least could you give a link to the page where the function code is located?


Sorry, I'm using the one in the Archive

http://nsis.sourceforge.net/archive/...php?pageid=384


Your're using only 1 link, you should download the file with this simple command below, and get rid of the function:

NSISdl::download"FileLink"

Replace "File Link" with the wanted link to the on-line file.