<?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=GTKSharpInstalled</id>
	<title>GTKSharpInstalled - 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=GTKSharpInstalled"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=GTKSharpInstalled&amp;action=history"/>
	<updated>2026-06-07T17:28:12Z</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=GTKSharpInstalled&amp;diff=9669&amp;oldid=prev</id>
		<title>207.32.229.26: Added my contact info in case people have questions about the script.</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=GTKSharpInstalled&amp;diff=9669&amp;oldid=prev"/>
		<updated>2006-02-16T03:35:58Z</updated>

		<summary type="html">&lt;p&gt;Added my contact info in case people have questions about the script.&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 03:35, 16 February 2006&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-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&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;  ;   Pop $0&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;  ;   Pop $0&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;  ;   StrCmp $0 1 found.GTKSharp no.GTKSharp&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;  ;   StrCmp $0 1 found.GTKSharp no.GTKSharp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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; ; Contact:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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; ;   Questions about this script may sent to the author, &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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; ;   Clint Herron, at HanClinto at gmail dot com&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;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;&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;Function IsGTKSharpInstalled&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;Function IsGTKSharpInstalled&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-9668:rev-9669 --&gt;
&lt;/table&gt;</summary>
		<author><name>207.32.229.26</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=GTKSharpInstalled&amp;diff=9668&amp;oldid=prev</id>
		<title>207.32.229.26: A simple script that checks to see if Gtk-Sharp is installed</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=GTKSharpInstalled&amp;diff=9668&amp;oldid=prev"/>
		<updated>2006-02-16T03:33:59Z</updated>

		<summary type="html">&lt;p&gt;A simple script that checks to see if Gtk-Sharp is installed&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
IsGTKSharpInstalled is a function I wrote to let me know if GTKSharp is installed on a computer. I had a hard time getting some of the registry search functions to work, so while waiting for someone to assist me in that, I went ahead and wrote this function to get the job done in the meantime. It seems to work pretty well so far.&lt;br /&gt;
&lt;br /&gt;
=== What it does ===&lt;br /&gt;
It searches all of the keys in the HKLM/Software/Novell tree, looking for a registry entry called &amp;quot;GtkSharpIsInstalled&amp;quot;. This can be found in a number of products (such as Mono, Gtk-Sharp and Gtk-Sharp-Runtime), so I decided to just traverse the whole Novell tree and have it done with.&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
* It doesn&amp;#039;t check for version numbers&lt;br /&gt;
&lt;br /&gt;
== Script ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto; width=100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
; IsGTKSharpInstalled&lt;br /&gt;
 ;&lt;br /&gt;
 ; Usage:&lt;br /&gt;
 ;   Call IsGTKSharpInstalled&lt;br /&gt;
 ;   Pop $0&lt;br /&gt;
 ;   StrCmp $0 1 found.GTKSharp no.GTKSharp&lt;br /&gt;
&lt;br /&gt;
Function IsGTKSharpInstalled&lt;br /&gt;
   Push $0&lt;br /&gt;
   Push $1&lt;br /&gt;
   Push $2&lt;br /&gt;
   Push $3&lt;br /&gt;
   Push $4&lt;br /&gt;
   Push $5&lt;br /&gt;
&lt;br /&gt;
   ;$0 is the top-level enumeration index we&amp;#039;re searching (product)&lt;br /&gt;
   ;$1 is the second-level enumeration index we&amp;#039;re searching (version)&lt;br /&gt;
   ;$2 is the top-level name we&amp;#039;re searching (product)&lt;br /&gt;
   ;$3 is the second-level name we&amp;#039;re searching (version)&lt;br /&gt;
   ;$4 is the last-level enumeration index we&amp;#039;re searching (individual key)&lt;br /&gt;
   ;$5 is the last-level name we&amp;#039;re searching (individual key)&lt;br /&gt;
   &lt;br /&gt;
   StrCpy $0 0 ; Start at the beginning of the Novell products&lt;br /&gt;
&lt;br /&gt;
   ProductEnumStart:&lt;br /&gt;
&lt;br /&gt;
     EnumRegKey $2 HKEY_LOCAL_MACHINE \&lt;br /&gt;
       &amp;quot;Software\Novell&amp;quot; $0&lt;br /&gt;
      &lt;br /&gt;
     IntOp $0 $0 + 1 ; Increment our counter&lt;br /&gt;
&lt;br /&gt;
     ; No more products to search, give up!&lt;br /&gt;
     StrCmp $2 &amp;quot;&amp;quot; noGTKSharp&lt;br /&gt;
&lt;br /&gt;
     ; Search within the product for version&lt;br /&gt;
     StrCpy $1 0&lt;br /&gt;
     VersionEnumStart:&lt;br /&gt;
       EnumRegKey $3 HKEY_LOCAL_MACHINE \&lt;br /&gt;
         &amp;quot;Software\Novell\$2&amp;quot; $1&lt;br /&gt;
&lt;br /&gt;
       IntOp $1 $1 + 1&lt;br /&gt;
       StrCmp $3 &amp;quot;&amp;quot; ProductEnumStart&lt;br /&gt;
&lt;br /&gt;
       ; Search within this version for the key we&amp;#039;re looking for       &lt;br /&gt;
       StrCpy $4 0&lt;br /&gt;
       KeyEnumStart:&lt;br /&gt;
         EnumRegValue $5 HKEY_LOCAL_MACHINE \&lt;br /&gt;
           &amp;quot;Software\Novell\$2\$3&amp;quot; $4&lt;br /&gt;
&lt;br /&gt;
         IntOp $4 $4 + 1&lt;br /&gt;
         StrCmp $5 &amp;quot;GtkSharpIsInstalled&amp;quot; foundGTKSharp&lt;br /&gt;
         StrCmp $5 &amp;quot;&amp;quot; VersionEnumStart&lt;br /&gt;
       Goto KeyEnumStart&lt;br /&gt;
     Goto VersionEnumStart&lt;br /&gt;
   Goto ProductEnumStart         &lt;br /&gt;
&lt;br /&gt;
   noGTKSharp:&lt;br /&gt;
     StrCpy $0 0&lt;br /&gt;
     Goto done&lt;br /&gt;
&lt;br /&gt;
   foundGTKSharp:&lt;br /&gt;
;    MessageBox MB_OK|MB_ICONSTOP &amp;quot;GTKSharp was found at $2\$3\$5&amp;quot;    &lt;br /&gt;
     StrCpy $0 1&lt;br /&gt;
&lt;br /&gt;
   done:&lt;br /&gt;
     Pop $5&lt;br /&gt;
     Pop $4&lt;br /&gt;
     Pop $3&lt;br /&gt;
     Pop $2&lt;br /&gt;
     Pop $1&lt;br /&gt;
     Exch $0&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Other Products Handling Functions]]&lt;/div&gt;</summary>
		<author><name>207.32.229.26</name></author>
	</entry>
</feed>