Archive: How To: No component has been selected error message


How To: No component has been selected error message
I am using the following code;

!insertmacro MUI_PAGE_COMPONENTS


How do I display an error message if the user has not clicked on any of the components. if the user has not clicked on any of the components, i want them to also remain at the components page unless they click cancel to exit the program or until they have selected a component.

How do I do this?

Thanks.

- Xthematrix


Probably trap the leave page event of components and see SectionGetFlags. See also example one-section.nsi, might come handy.


code
anyone know how to do this , example code?


In the components page leave function, check if all the sections are selected with ${If} ${SectionIsSelected} (!include LogicLib.nsh).

Search the forums for that.

Stu