<?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=Get_.NET_Service_Pack</id>
	<title>Get .NET Service Pack - 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=Get_.NET_Service_Pack"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_.NET_Service_Pack&amp;action=history"/>
	<updated>2026-04-07T10:06:33Z</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=Get_.NET_Service_Pack&amp;diff=8400&amp;oldid=prev</id>
		<title>Pixolut: Detect which .Net Framework service pack is applied</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_.NET_Service_Pack&amp;diff=8400&amp;oldid=prev"/>
		<updated>2005-11-13T23:40:36Z</updated>

		<summary type="html">&lt;p&gt;Detect which .Net Framework service pack is applied&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageAuthor|pixolut}}&lt;br /&gt;
This function retrieves the service pack of the .NET runtime library installed on the user&amp;#039;s computer. It can be modified to detect specifiec .NET installations, but I would recommend using  this function instead [[Get .NET Version]]. The function will return -1 if the entry is not found and 0 for a framework installation with NO service packs applied.&lt;br /&gt;
&lt;br /&gt;
Refer for this article for more information [http://support.microsoft.com/?kbid=318785&amp;amp;sd=msdn] &lt;br /&gt;
==The Function==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
;***************************************************************&lt;br /&gt;
;Returns the service pack of .Net 1.1 (simply chage the regkey to get 1.0 or 2.0&lt;br /&gt;
;Returns -1 if there is no .Net entry (not there or incorrect/incomplete install)&lt;br /&gt;
Function GetDotNETServicePack&lt;br /&gt;
  Push $R0&lt;br /&gt;
    ReadRegDWORD $R0 HKLM &amp;quot;SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322&amp;quot; &amp;quot;SP&amp;quot;&lt;br /&gt;
   IfErrors 0 lbl_ok&lt;br /&gt;
   Strcpy $R0 &amp;quot;-1&amp;quot;&lt;br /&gt;
 lbl_ok:&lt;br /&gt;
  Exch $R0&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Other Products Version Detection Functions]]&lt;/div&gt;</summary>
		<author><name>Pixolut</name></author>
	</entry>
</feed>