Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Check for .NET Installed

54 views
Skip to first unread message

eSolTec, Inc. 501(c)(3)

unread,
Oct 11, 2006, 3:15:02 PM10/11/06
to
Thank you in advance for any and all assistance. It is greatly appreciated.
Is there a way to programmatically check for .NET Framework versions
installed on the computer?
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.

eSolTec, Inc. 501(c)(3)

unread,
Oct 11, 2006, 3:15:02 PM10/11/06
to

tesl...@hotmail.com

unread,
Oct 11, 2006, 4:00:36 PM10/11/06
to
Look here:

http://support.microsoft.com/kb/318785

There's an interesting theme to your recent messages. If you don't
mind me asking, what are you writing?

eSolTec, Inc. 501(c)(3)

unread,
Oct 11, 2006, 5:46:02 PM10/11/06
to
Tesl...@hotmail.com,

I'm writing an application that will search the hard drive/registry for a
particluar installed application and allow the user of the
application(technician) hopefully to surgically remove the registry entries
and program files associated with that application.

By the way, the link was no good :) Go figure, Microsoft moved it and didn't
set up forwarding.


--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.

rowe_newsgroups

unread,
Oct 11, 2006, 6:10:24 PM10/11/06
to
> By the way, the link was no good :) Go figure, Microsoft moved it and didn't
> set up forwarding.

Link looks fine for me, what were you expecting?

> Is there a way to programmatically check for .NET Framework versions
> installed on the computer?

Why exactly do you need to determine Framework versions?

Thanks,

Seth Rowe

eSolTec, Inc. 501(c)(3)

unread,
Oct 11, 2006, 6:18:02 PM10/11/06
to
Seth,

The reason for determining if .NET Framework is installed and the version is
very simple. My VB app requires .NET Framework 2.0. If I can programmatically
check for the installation, then it's not necessary for someone to have to
download and install a nearly 25.0 meg file for the 2.0 SDK or .NET Framework.


--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.

eSolTec, Inc. 501(c)(3)

unread,
Oct 11, 2006, 6:19:02 PM10/11/06
to

-- Sorry, the page you requested is not available.

The page you were looking for is currently not available. The address may
not be correct, or there may be a temporary problem with this site. Please
try one of the following options:

Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.

Mythran

unread,
Oct 11, 2006, 6:46:25 PM10/11/06
to

"eSolTec, Inc. 501(c)(3)" <eso...@noemail.nospam> wrote in message
news:77F6FDE3-EB13-4F18...@microsoft.com...

I was getting this error too. What I found interesting is, if I used IE it
works...the page you are getting is a redirect from another redirected page
(login?) ... if you have quick eyes, check out the status bar when you first
click on the link (status bar of the popup) and see what page it's
redirecting to before you get the error screen...

HTH,
Mythran


tesl...@hotmail.com

unread,
Oct 11, 2006, 6:58:29 PM10/11/06
to
eSolTec wrote:
> I'm writing an application that will search the hard drive/registry for a
> particluar installed application and allow the user of the
> application(technician) hopefully to surgically remove the registry entries
> and program files associated with that application.

Cool.

> By the way, the link was no good :) Go figure, Microsoft moved it and didn't
> set up forwarding.

I just double-checked it with IE and Firefox, both worked... Not sure
why you can't access it.

rowe_newsgroups

unread,
Oct 11, 2006, 7:00:04 PM10/11/06
to
Thats what I thought. Judging from the fact that you are posting in a
Vb.Net newsgroup I am assuming that you are going to "programmatically"
check for .Net 2.0 using Vb.Net. If this is the case it will fail
miserably due to the fact it will require .Net 2.0 to run the program
to check to see if .Net 2.0 is installed. Get my drift?

As far as the link goes, I open it just fine with firefox.

Herfried K. Wagner [MVP]

unread,
Oct 11, 2006, 8:03:49 PM10/11/06
to
"eSolTec, Inc. 501(c)(3)" <eso...@noemail.nospam> schrieb:

> Thank you in advance for any and all assistance. It is greatly
> appreciated.
> Is there a way to programmatically check for .NET Framework versions
> installed on the computer?

Some C code:

<URL:http://dotnet.mvps.org/dotnet/articles/dnchk/dnchk.zip>

More evolved solution:

<URL:http://www.codeproject.com/dotnet/DetectDotNet.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Gary Chang[MSFT]

unread,
Oct 12, 2006, 1:33:11 AM10/12/06
to
Hi Michael,

If your VB.NET application's installation package is created by the
VS2005's setup project, the setup will create a default launch condition
for you to check the .NET Framework's version on the target machine. In
this scenario, you don't need to do this by yourself.

If you just want an application to check NET Framework on a machine, then
you need a non .NET application to perform this. The .NET application
cannot run in a machine without the corresponding NET Framework. The
general approach is to check the corresponding registry key in the target
machine, for .NET Framework 2.0, you can check the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727

By the way, the community member Herfried also provided the sample program
link:

http://www.codeproject.com/dotnet/DetectDotNet.asp


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.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Gary Chang[MSFT]

unread,
Oct 12, 2006, 3:14:06 AM10/12/06
to
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.

HKSHK

unread,
Oct 12, 2006, 9:11:11 AM10/12/06
to
Dear Mr. Bragg,

In order to find out if a particular framework exists on a computer, no
program is required, but a simple batch file will do.

If a framework is installed you can check easily by going to
C:\WINDOWS\Microsoft.NET\Framework

There you will find subdirectories (V1.0.*, V1.1.*, V2.0.*).
Just check with your batch file like this:

@ECHO OFF

IF EXIST %SYSTEMROOT%\Microsoft.NET\Framework\V1.0.* ECHO Framework 1.0

IF EXIST %SYSTEMROOT%\Microsoft.NET\Framework\V1.1.* ECHO Framework 1.1

IF EXIST %SYSTEMROOT%\Microsoft.NET\Framework\V2.0.* ECHO Framework 2.0

Best Regards,

HKSHK

0 new messages