Skip to content
⌘ NSIS Forum Archive

Distrubution of NSISdl

6 posts

b_avery@yahoo.c#

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?
b_avery@yahoo.c#
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:
b_avery@yahoo.c#
Sorry, I'm using the one in the Archive

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

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