Archive: Relative jump don't work


Relative jump don't work
  Hi,
when I use relative jump, my code doesn't work.

This code works:

  StrCpy $code 78

IntCmp $code 0 CodeKO CodeOK CodeOK
CodeKO:
!
insertmacro MUI_HEADER_TEXT "Enter code" "Your code is wrong"
Abort
CodeOK:
MessageBox MB_OK "Your code is OK"
This code doesn't work:
  StrCpy $code 78

IntCmp $code 0+1 +3 +3
!insertmacro MUI_HEADER_TEXT "Enter code" "Your code is wrong"
Abort
MessageBox MB_OK "Your code is OK"

That's because MUI_HEADER_TEXT macro contains more than 1 command inside. Never you should relatively jump over macros.


Thank you. I understand now.