<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Components_Page_Next_Button</id>
	<title>Components Page Next Button - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Components_Page_Next_Button"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Components_Page_Next_Button&amp;action=history"/>
	<updated>2026-06-05T02:43:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Components_Page_Next_Button&amp;diff=12007&amp;oldid=prev</id>
		<title>Takhir at 09:04, 20 February 2007</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Components_Page_Next_Button&amp;diff=12007&amp;oldid=prev"/>
		<updated>2007-02-20T09:04:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageAuthor|Takhir}}&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Enabled &amp;#039;Next&amp;#039; button looks confusing if none of sections selected. Function disables Next button on the components page for this situation. Simple components structure in this sample (no groups), 4 sections - use your own section names in function instead og gXX.&lt;br /&gt;
Another way is to make one section read only and checked.&lt;br /&gt;
&lt;br /&gt;
== The Script ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;Section $(binaries) g01&lt;br /&gt;
&lt;br /&gt;
SectionEnd&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Function .onSelChange&lt;br /&gt;
&lt;br /&gt;
  Push $0&lt;br /&gt;
  Push $1&lt;br /&gt;
  SectionGetFlags ${g01} $0&lt;br /&gt;
  IntOp $0 ${SF_SELECTED} &amp;amp; $0&lt;br /&gt;
  SectionGetFlags ${g02} $1&lt;br /&gt;
  IntOp $1 ${SF_SELECTED} &amp;amp; $1&lt;br /&gt;
  IntOp $0 $1 | $0&lt;br /&gt;
  SectionGetFlags ${g03} $1&lt;br /&gt;
  IntOp $1 ${SF_SELECTED} &amp;amp; $1&lt;br /&gt;
  IntOp $0 $1 | $0&lt;br /&gt;
  SectionGetFlags ${g04} $1&lt;br /&gt;
  IntOp $1 ${SF_SELECTED} &amp;amp; $1&lt;br /&gt;
  IntOp $0 $1 | $0&lt;br /&gt;
  GetDlgItem $1 $HWNDPARENT 1&lt;br /&gt;
  EnableWindow $1 $0&lt;br /&gt;
  Pop $1&lt;br /&gt;
  Pop $0&lt;br /&gt;
&lt;br /&gt;
FunctionEnd&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
[[Category: Section Management Functions]]&lt;/div&gt;</summary>
		<author><name>Takhir</name></author>
	</entry>
</feed>