probing for CLR

  • Thread starter Thread starter bonk
  • Start date Start date
B

bonk

How can I test in a culture- and operating system independent way if the
..NET Framework is installed (and in a certain version) on the target
machine using vc++ 6 ?
 
Hi bonk!
How can I test in a culture- and operating system independent way if the
..NET Framework is installed (and in a certain version) on the target
machine using vc++ 6 ?

By reading the registry.

..NET Framework 1.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0
Key: 3705
Value (string): 3321-3705

..NET Framework 1.1:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1
Key: 4322
Value (string): 3706-4322

..NET Framework 2.0:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1
Key: 50727
Value (string): 50727-50727


See also: How to detect the version of the .NET Framework that is
installed in a deployment package in Visual Studio .NET
http://support.microsoft.com/kb/315291/en-us

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Jochen said:
Should be
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0
For version 2.0 how do I differentiate the different beta/ctp versions ?
 
Back
Top