jeudi 1 mai 2014

version - vérifier .NET Framework 4.5 est installée ou pas en utilisant Installshield 2010 - Stack Overflow


I'm using Installshield 2010. I want to check .NET framework 4.5 is installed or not in 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


Please help me on this issue.




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.




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



I'm using Installshield 2010. I want to check .NET framework 4.5 is installed or not in 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


Please help me on this issue.



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.



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


0 commentaires:

Enregistrer un commentaire