Archive: Problems with the stack


Problems with the stack
I'm a beginner so please be gentle! Having a few problems with the stack, messages seem to be appearing where they aren't expected so it's throwing a few things off.

Firstly, using the NSISList plugin to make a list of the files which need updating, and was then attempting to download them as they are recalled from the list. Code is below.

        ${List.All} UpdateDLL
Loop1:
Pop $0
DetailPrint "All: $0"
NSISdl::download ${Server}/$0 $0 $R0
StrCmp $0 "__ERROR" +2
StrCmp $0 "__LAST" 0 Loop1


From my limited knowledge I would have expected the files to be listed separately as $0 when they are recalled, printed as "All: Filename" and then downloaded from my server, saved as Filename with the return value in variable $R0. However, it is downloading the first one fine, but all others it see $0 as 'success', the return code from the first download.

I made a messagebox appear after the first download and $R0 is definitely the return code while $0 is the filename so I can't figure out where the problem is the second time round.

Any help will be greatly appreciated.

You need another Pop after the NSISdl call.

Stu