Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How To: No component has been selected error message (http://forums.winamp.com/showthread.php?t=280298)

xthematrix 29th October 2007 21:28

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 29th October 2007 23:46

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

xthematrix 30th October 2007 00:59

code
 
anyone know how to do this , example code?

Afrow UK 30th October 2007 09:47

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


All times are GMT. The time now is 05:32.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.