Skip to content
⌘ NSIS Forum Archive

Break a section and go to the next one

3 posts

ChocJunkie#edited

Break a section and go to the next one

Hey 🙂

Is it possible to break a section and call/go to the next one?
I know, I can break a section using RETURN. But therefor I have to call RETURN directly from inside the function. But I would like to break the section from inside a function.

Thanks 🙂

CJ
MSG#
If you don't call the function too often, you could turn it into a macro instead. That way you'll never leave the section and return would break the section.
jpderuiter#
Depending on what you want, you can also use the Abort command in the page pre-callback function to skip a page (See chapter 4.5.3 from the manual).