Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Determine .NET framework version

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,35340
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Determine .NET framework version
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Determine .NET framework version - 6/12/2006 5:29:32 AM   
  mbouchard


Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
This is some code that I have been working on from time to time and finally have something working.  .NET is one of those PITA apps that is difficult to find the version and there is not much info from MS on how to do this either, except in VB etc.

So, here is my first version of GetDotNet.  I will probably work on an ALL switch next but we will see.  All depends on if I ever need it or not.


      

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.
 
 
Post #: 1
 
 RE: Determine .NET framework version - 6/13/2006 1:17:54 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
im surprised that this info isnt in the registry

have you looked to see?

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to mbouchard)
 
 
Post #: 2
 
 RE: Determine .NET framework version - 6/13/2006 1:43:15 AM   
  ginolard


Posts: 1024
Score: 21
Joined: 8/10/2005
Status: offline
Indeed, you can check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP and check for existence of the 1.0/1.1/2.0-related keys

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to kirrilian)
 
 
Post #: 3
 
 RE: Determine .NET framework version - 6/13/2006 1:54:36 AM   
  mbouchard


Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
quote:

ORIGINAL: kirrilian

im surprised that this info isnt in the registry

have you looked to see?

Yes, as Ginolard pointed out, these keys are present in the reg if 1.0/1.1/2.0 is installed, but this doesn't tell you what, if any SP's are installed.  I used http://pluralsight.com/wiki/default.aspx/Keith/DotnetVersionWiki.html  among others as a reference when working on this script.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to kirrilian)
 
 
Post #: 4
 
 RE: Determine .NET framework version - 10/12/2006 8:39:22 PM   
  est

 

Posts: 39
Score: 0
Joined: 10/12/2006
Status: offline
In Windows Vista there is .NET Framework 3.0

C:\Windows\Microsoft.NET\Framework\v3.0\

_____________________________

Do NOT program in a programmer's way

(in reply to mbouchard)
 
 
Post #: 5
 
 RE: Determine .NET framework version - 10/13/2006 12:08:15 AM   
  mbouchard


Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
Thanks, will add it once Vista goes live.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to est)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Determine .NET framework version Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts