By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,071 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,071 IT Pros & Developers. It's quick & easy.

Check for .NET Installed

P: n/a
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.
Oct 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Oct 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.