Archive: error call function


error call function
Hi,
in this code i have a problem, if i press yes on messagebox i jump on un.a, and this works correctly, but if i press no, i jump on un.b and then in un.a...why this? thx


Function un.onUninstSuccess
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "message" IDYES calla IDNO callb
callb:
call un.b
calla:
call un.a
FunctionEnd

Function un.a
FunctionEnd

Function un.b
FunctionEnd

!include LogicLib.nsh

Function un.onUninstSuccess
${If} ${Cmd} `MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "message" IDNO`
call un.b
${Else}
call un.a
${EndIf}
FunctionEnd


As for your original code, labels don't stop execution. You'd need a Goto before calla: to jump over the code after it.

Stu

thx so much! it works ;)