Archive: .Net Framework version


.Net Framework version
Hi

I've searched and found some functions which either check if .Net Framework is installed or return the current .Net Framework version.

I think I need something more: I need a function tells me if there is a .Net Framework installed and if it is equal or greater than a specific version (let's say 2.0.50727).

Does something like this exist?


Hi buddy,

I was also in the quest for the same,
I used following

ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" "Install"

Also found some important info about the DNF versions out there, may be useful to you.


***********************************************************
1.0.2204.21 Version 1.0 Public Beta 1 Nov 2000 *
1.0.2914.16 Version 1.0 Public Beta 2 Jun 2001 *
1.0.3512.0 Version 1.0 Pre-release RC3 (Visual Studio.NET 2002 RC3)
1.0.3705.0 Version 1.0 RTM (Visual Studio.NET 2002) Feb 2002 *
1.0.3705.209 Version 1.0 SP1 Mar 2002 *
1.0.3705.288 Version 1.0 SP2 Aug 2002 *
1.1.4322.510 Version 1.1 Final Beta Oct 2002 *
1.1.4322.573 Version 1.1 RTM (Visual Studio.NET 2003 / Windows Server 2003) Feb 2003 *
1.2.21213.-1 Version 1.2 (Whidbey pre-Alpha build) *
1.2.30703.27 Version 1.2 (Whidbey Alpha, PDC 2004) Nov 2003 *
2.0.40301.9 Version 2.0 (Whidbey CTP, WinHEC 2004) March 2004 *
2.0.40426.16 Version 2.0 (Whidbey CTP, TechEd US 2004) May 2004 *
2.0.40607.16 Version 2.0 (Visual Studio.NET 2005 Beta 1, TechEd Europe 2004) June 2004
2.0.40607.42 Version 2.0 (SQL Server Yukon Beta 2) July 2004
1.0.3705.6018 Version 1.0 SP3 Aug 2004
1.1.4322.2032 Version 1.1 SP1 Aug 2004
1.1.4322.2300 Version 1.1 Post-SP1 (Windows Server 2003 SP1) March 2005
2.0.40607.85 Version 2.0 (Visual Studio.NET 2005 Beta 1, Team System Refresh) Aug 2004 *
2.0.40903.0 Version 2.0 (Whidbey CTP, Visual Studio Express) Oct 2004
2.0.41115.19 Version 2.0 (Visual Studio.NET 2005 Beta 1, Team System Refresh) Dec 2004
2.0.50110.28 Version 2.0 (Visual Studio.NET 2005 CTP, Professional Edition) Feb 2005
2.0.50215.44 Version 2.0 (Visual Studio.NET 2005 Beta 2, Visual Studio Express Beta 2) Apr 2005
2.0.50601.0 Version 2.0 (Visual Studio.NET 2005 CTP) June 2005
2.0.50215.322 Version 2.0 (Beta 2, WinFX) Sept 2005
2.0.50727.07 Version 2.0 (Visual Studio.NET 2005 CTP) Aug 2005
2.0.50727.26 Version 2.0 (Visual Studio.NET 2005 RC / SQL Server 2005 CTP) Sept 2005
2.0.50727.42 Version 2.0 RTM (Visual Studio.NET 2005 RTM / SQL Server 2005 RTM) Nov 2005

***********************************************************


Ok, but if you use this:

ReadRegStr $R8 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" "Install"
How are you able to detect older/more recent versions of .NET?

I just wrote this:
http://nsis.sourceforge.net/Get_.NET...sion_installed

-Stu


There's already Get .NET Version, which is the basis of the new IsDotNETInstalled.


You should also note that you will need to include the following code into your script to get the .Net logic to work correctly.

!include "LogicLib.nsh"
!include "WordFunc.nsh"

!insertmacro VersionCompare