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.
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.
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
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.
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
© 2022 - 2024 — McMap. All rights reserved.