Check .NET Framework 4.5 is installed or not Using Installshield 2010
Asked Answered
S

3

23

I'm using InstallShield 2010. I want to check whether .NET framework 4.5 is installed or not on the machine.

I can check .NET framework 4.0 is installed or not from registry, but I'm unable to find any registry key for .NET framework 4.5.

Statuary answered 9/10, 2013 at 6:48 Comment(1)
Harish Reddy - if the answer was helpful for you - upvote is please. If it was the solution - upvote + acceptTabithatablature
Y
33

According to the MSDN article here: http://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

To find the installed .NET Framework versions manually (versions 4.5 and later)

  • On the Start menu, choose Run.
  • In the Open box, enter regedit.exe. (You must have administrative credentials to run regedit.exe.)
  • In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full Check for a DWORD value named Release. The existence of the Release DWORD indicates that the .NET Framework 4.5 or newer has been installed on that computer.

In other words under InstallShield, check for the existence of the Release DWORD at the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full

Yielding answered 27/11, 2013 at 21:48 Comment(1)
don't get mixed with v4.0! you might have in registry both: v4 and v4.0 ->look at v4\Full (not v4.0) for that entry - "Release"Fontes
T
12

Form Blog .NET 4.5 is an in-place replacement for .NET 4.0 and similar SO answer

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client

check the Version value there.

If it starts with "4.0" you are running on the 4.0 runtime, if it starts with "4.5" you are running on the 4.5 runtime.

Tabithatablature answered 9/10, 2013 at 6:55 Comment(1)
One thing that is a very big source of confusion for developers is the difference between .Net framework version and CLR version. The two are NOT same. CLR version doesn't change as often as .Net framework does. Check the section "Versions of the Common Language Runtime" on this link. To know CLR version use "clrver" command in visual studio command prompt. For .Net framework version you should rely on registry entries as correctly answered by DDA below.Zolner
G
6

As of 2015-06-01, The way to check any version up to 4.6 is described at MSDN: How to: Determine Which .NET Framework Versions Are Installed

Gouache answered 1/6, 2015 at 13:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.