Hi Michael,
By the way, the link was no good
Go figure, Microsoft moved
it and didn't set up forwarding.
For your convienence, I posted the sample link which is introduced by that
KB article:
http://astebner.sts.winisp.net/Tools/detectFX.cpp.txt
By the way, I also attach the related KB article's content for your
reference:
SUMMARY
This article describes how to determine which versions of the Microsoft
.NET Framework are installed on your computer. This article also helps you
determine whether any .NET Framework service packs are installed on the
computer. For more information about service packs for the .NET Framework,
click the following article number to view the article in the Microsoft
Knowledge Base:
318836 (
http://support.microsoft.com/kb/318836/) How to obtain the latest
.NET Framework service pack
Note This information should be used as a general guide for determining
which versions of the .NET Framework are installed on a computer. Also note
that files that have a later version listed may be files that were shipped
as part of a hotfix or a hotfix rollup package. The hotfix .NET Framework
file versions are outside the scope of this article.
Determine which versions of the .NET Framework are installed on a computer
The easiest way to determine which versions of the .NET Framework are
installed on a computer is to locate the
%systemroot%\Microsoft.NET\Framework folder. You can paste the listed
address for the Framework folder into a Windows Explorer address bar to
navigate to the Framework folder. The three released versions of the .NET
Framework are contained in the following folders:?
v1.0.3705
v1.1.4322
v2.0.50727
Note If you see other directories that have a vN.N.NXXXX format that are
not listed in this article, the versions may be beta versions or
pre-released versions of the .NET Framework. Those versions are outside the
scope of this article.
To determine which versions of the .NET Framework are installed on a
computer, follow these steps:
1. Open any one of the folders in the previous list, and then locate the
Mscorlib.dll file.
2. Right-click the file, and then click Properties.
3. Click the Version tab, and then note the file version.
4. Use the previous list to determine which version of the .NET Framework
is installed on the computer, and then click OK.
Repeat these steps for each version of the .NET Framework on the computer.
REFERENCES
For more information about the benefits of the .NET Framework, click the
following article number to view the article in the Microsoft Knowledge
Base:
829019 (
http://support.microsoft.com/kb/829019/) Benefits of the Microsoft
.NET Framework
For more information about the various configutations of the .NET Framework
1.1, click the following article number to view the article in the
Microsoft Knowledge Base:
915756 (
http://support.microsoft.com/kb/915756/) How to install and update
the .NET Framework 1.1 on different operating systems
For more information about file versions, visit the following Microsoft Web
site:
http://support.microsoft.com/dllhelp (
http://support.microsoft.com/dllhelp)
For developers, Aaron Stebner's WebLog has two entries that are
interesting. To view the entry that contains Visual C++ sample code to
programmatically detect .NET Framework 1.0 , 1.1, and 2.0 and their service
packs, visit the following Microsoft Developer Network (MSDN) Web site:
http://blogs.msdn.com/astebner/archive/2004/09/18/231253.aspx
(
http://blogs.msdn.com/astebner/archive/2004/09/18/231253.aspx)
To view the entry that discusses versions of the .NET Framework in the
context of Microsoft Visual Studio, visit the following MSDN Web site:
http://blogs.msdn.com/astebner/archive/2005/07/12/438245.aspx
(
http://blogs.msdn.com/astebner/archive/2005/07/12/438245.aspx)
Thanks!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.