Archive: Error: could not resolve label "_LogicLib_Label_56"


Error: could not resolve label "_LogicLib_Label_56"
hello,

i just added a download-option to my script but now i get the following error:

Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Error: could not resolve label "_LogicLib_Label_56" in install section "my section" (1)
Error - aborting creation process
here's the section:
Section "my section"
SectionIn 1

SetDetailsPrint textonly
DetailPrint "Looking for new file version"
SetDetailsPrint none

NSISdl::download_quiet /TIMEOUT=10000 http://my.site.com/version.ini $TEMP\version.ini
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
Goto offinstgad

ReadINIStr $OnlineVG "$TEMP\version.ini" "myprog" "version"

${If} $OnlineVG > $LocalVG

SetDetailsPrint textonly
DetailPrint "Downloading new file version"
SetDetailsPrint none

NSISdl::download /TIMEOUT=10000 http://my.site.com/myprog.zip $TEMP\myprog.zip
Pop $R0 ;Get the return value
StrCmp $R0 "success" +2
Goto offinstgad

SetDetailsPrint textonly
DetailPrint "Decompressing files"
SetDetailsPrint none

nsisunz::UnzipToLog "$TEMP\myprog.zip" "$INSTDIR"
Pop $R0
StrCmp $R0 "success" +3
DetailPrint "$R0" ;print error message to log
Goto offinstgad
Delete "$TEMP\myprog.zip"

${Else}
offinstgad:
...
i have no idea what this error could mean.
i have the same function in another section where everything works fine.

thank you in advance.

Edit: The error is basically LogicLib having a 'goto' for a label it is supposed to generate somewhere - but that label is never inserted into the script.

I presume you do have a ${EndIf} in the section eventually?
The example as given doesn't compile - and adding the necessary bits for it to compile causes no error to be thrown... can you provide a complete example?


i got it. ${EndIf} was missing.

thank you!


go figure %)