xthematrix
29th October 2007 23:28 UTC
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
Joel
30th October 2007 01:46 UTC
Probably trap the leave page event of components and see SectionGetFlags. See also example one-section.nsi, might come handy.
xthematrix
30th October 2007 02:59 UTC
code
anyone know how to do this , example code?
Afrow UK
30th October 2007 11:47 UTC
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