Archive: Components page recognise the state change of a Component while runing


Components page recognise the state change of a Component while runing
Hello everyone,

I'm new in this forum. I try to recognise the state change of a component from the component page while the page is shown.

I'd like to send an info message directly after the user unchecks the component.

I'm using:
!include "MUI.nsh"
!insertmacro MUI_PAGE_COMPONENTS
and a few sections

Do I need a loop for that?
Do I need this command: SectionGetFlags?
Do I have to call a Function in MUI_PAGE_COMPONENTS? How can I do this?

Thanks al lot!

Mischa E


NSIS has a callback function designed specifically for your purpose: .onSelChange. Callback functions are called automatically when some specific event occurs, you can read about them in the manual: http://nsis.sourceforge.net/Docs/Chapter4.html#4.7.2.1

Inside your onselchange function you can of course use sectiongetflags if you want to know the new state of your section(s).


Thanks MSG!!

.onSelChange is exactly what I need.