<?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=LogicLib_-_ForEachReg</id>
	<title>LogicLib - ForEachReg - 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=LogicLib_-_ForEachReg"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LogicLib_-_ForEachReg&amp;action=history"/>
	<updated>2026-06-02T11:16:37Z</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=LogicLib_-_ForEachReg&amp;diff=19417&amp;oldid=prev</id>
		<title>Zinthose: Added library filename</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LogicLib_-_ForEachReg&amp;diff=19417&amp;oldid=prev"/>
		<updated>2011-02-09T13:54:39Z</updated>

		<summary type="html">&lt;p&gt;Added library filename&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:54, 9 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Only limitation is that the stack must be maintained for the enumeration counter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Only limitation is that the stack must be maintained for the enumeration counter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Source &lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LogicLib_ForEachReg.nsh &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!ifndef ___LogicLib_ForEachReg_NSH___&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;!ifndef ___LogicLib_ForEachReg_NSH___&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-19387:rev-19417 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zinthose</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=LogicLib_-_ForEachReg&amp;diff=19387&amp;oldid=prev</id>
		<title>Zinthose: Initial Release</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=LogicLib_-_ForEachReg&amp;diff=19387&amp;oldid=prev"/>
		<updated>2011-02-09T02:22:57Z</updated>

		<summary type="html">&lt;p&gt;Initial Release&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageAuthor|Zinthose}}&lt;br /&gt;
== About ==&lt;br /&gt;
Library to extend the LogicLib library to enumerate the registry keys and values.&lt;br /&gt;
Only limitation is that the stack must be maintained for the enumeration counter.&lt;br /&gt;
&lt;br /&gt;
== Source ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
!ifndef ___LogicLib_ForEachReg_NSH___&lt;br /&gt;
!define ___LogicLib_ForEachReg_NSH___&lt;br /&gt;
&lt;br /&gt;
; -----------------------------&lt;br /&gt;
;    LogicLib_ForEachReg.nsh&lt;br /&gt;
; -----------------------------&lt;br /&gt;
;&lt;br /&gt;
; Library to extend the &amp;#039;LogicLib&amp;#039; library&amp;#039;s existing functions.&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
!include LogicLib.nsh&lt;br /&gt;
&lt;br /&gt;
; -----------------------&lt;br /&gt;
;     ForEachRegKey&lt;br /&gt;
; -----------------------&lt;br /&gt;
;&lt;br /&gt;
;   Example:&lt;br /&gt;
;       ${ForEachRegKey} $0 HKLM &amp;#039;SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList&amp;#039;&lt;br /&gt;
;           ${ForEachRegValue} $1 HKLM &amp;#039;SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$0&amp;#039;&lt;br /&gt;
;               DetailPrint &amp;quot;$0 = $1&amp;quot;&lt;br /&gt;
;           ${NextRegValue}&lt;br /&gt;
;       ${NextRegKey}&lt;br /&gt;
;&lt;br /&gt;
&lt;br /&gt;
## LogicLib Registry Library&lt;br /&gt;
    !define ForEachRegKey `!insertmacro _ForEachReg Key`&lt;br /&gt;
    !define ForEachRegValue `!insertmacro _ForEachReg Value`&lt;br /&gt;
    !macro _ForEachReg _n _outKeyName _inRootKey _inSubKey&lt;br /&gt;
        !verbose push&lt;br /&gt;
        !verbose ${LOGICLIB_VERBOSITY}&lt;br /&gt;
        !insertmacro _PushLogic&lt;br /&gt;
        !define ${_Logic}ForEachReg${_n} _LogicLib_Label_${LOGICLIB_COUNTER}&lt;br /&gt;
        !insertmacro _IncreaseCounter&lt;br /&gt;
        !insertmacro _LOGICLIB_TEMP&lt;br /&gt;
        Push 0&lt;br /&gt;
        ${${_Logic}ForEachReg${_n}}:&lt;br /&gt;
        !insertmacro _PushScope ExitForEachReg${_n} _LogicLib_Label_${LOGICLIB_COUNTER}&lt;br /&gt;
        !insertmacro _IncreaseCounter&lt;br /&gt;
        !insertmacro _PushScope Break ${_ExitForEachReg${_n}}&lt;br /&gt;
        Pop $_LOGICLIB_TEMP&lt;br /&gt;
        EnumReg${_n} ${_outKeyName} ${_inRootKey} &amp;#039;${_inSubKey}&amp;#039; $_LOGICLIB_TEMP&lt;br /&gt;
        StrCmp ${_outKeyName} &amp;quot;&amp;quot; ${_ExitForEachReg${_n}}&lt;br /&gt;
        IntOp $_LOGICLIB_TEMP $_LOGICLIB_TEMP + 1&lt;br /&gt;
        Push $_LOGICLIB_TEMP&lt;br /&gt;
        !insertmacro _PushScope Continue _LogicLib_Label_${LOGICLIB_COUNTER}&lt;br /&gt;
        !insertmacro _IncreaseCounter&lt;br /&gt;
        !define ${_Logic}Condition&lt;br /&gt;
        !verbose pop&lt;br /&gt;
    !macroend&lt;br /&gt;
&lt;br /&gt;
    !define NextRegKey      `!insertmacro _NextReg Key`&lt;br /&gt;
    !define NextRegValue    `!insertmacro _NextReg Value`&lt;br /&gt;
    !macro _NextReg _n&lt;br /&gt;
        !verbose push&lt;br /&gt;
        !verbose ${LOGICLIB_VERBOSITY}&lt;br /&gt;
        !ifndef _Logic | ${_Logic}ForEachReg${_n}&lt;br /&gt;
            !error &amp;quot;Cannot use NextReg${_n} without a preceding ForEachReg${_n}&amp;quot;&lt;br /&gt;
        !endif&lt;br /&gt;
        ${_Continue}:&lt;br /&gt;
        Goto ${${_Logic}ForEachReg${_n}}&lt;br /&gt;
        Goto ${_Continue}&lt;br /&gt;
        Goto ${_ExitForEachReg${_n}}&lt;br /&gt;
        ${_ExitForEachReg${_n}}:&lt;br /&gt;
        !insertmacro _PopScope Continue&lt;br /&gt;
        !insertmacro _PopScope Break&lt;br /&gt;
        !insertmacro _PopScope ExitForEachReg${_n}&lt;br /&gt;
        !undef ${_Logic}ForEachReg${_n}&lt;br /&gt;
        !insertmacro _PopLogic&lt;br /&gt;
        !verbose pop&lt;br /&gt;
    !macroend&lt;br /&gt;
!endif&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
[[Category:Headers]]&lt;/div&gt;</summary>
		<author><name>Zinthose</name></author>
	</entry>
</feed>