Welcome to MSDN Blogs Sign in | Join | Help

How to detect what .NET Framework 1.0 service pack is installed

I posted information here earlier today about how to detect which service pack is installed for the .NET Framework 1.1 (and will also be able to be used for future versions of the .NET Framework).  Since then I've done some additional research to figure out what registry key/value pair can be used to detect the service pack level for the .NET Framework 1.0 so that the instructions on this KB article will not need to be used (since it is more difficult to perform programatically and the detection has to be updated with each future service pack that Microsoft releases).  Here are the registry keys/values that can be used:

For the MSI version of the .NET Framework 1.0:

  • Key Name: HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{78705f0d-e8db-4b2d-8193-982bdda15ecd}
  • Value: Version
  • Data type: REG_SZ

For the OCM version of the .NET Framework 1.0 (ships on Tablet PC, Media Center and XP Embedded only):

  • Key Name: HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{FDC11A6F-17D1-48f9-9EA3-9051954BAA24}
  • Value: Version
  • Data type: REG_SZ

For both of the above registry values, the data will be of the form 1,0,3705,x.  The "x" in this data represents the service pack level.  If you retrieve the registry value data and then parse off the number after the last comma, that will give you the SP level for the .NET Framework 1.0.

I'm going to try find time tonight or tomorrow to create a code snippet that will show how to detect whether or not the .NET Framework 1.0 or 1.1 is installed, and if so, which SP (if any) is installed.  Stay tuned.....

 

 

Published Tuesday, September 14, 2004 11:32 PM by astebner
Filed under:

Comments

Saturday, September 18, 2004 3:23 PM by Aaron Stebner's WebLog

# Sample code to detect .NET Framework 1.0 and 1.1 and service packs

Tuesday, September 21, 2004 3:05 PM by AddressOf.com

# Determine if and what version of the .NET Framework is installed (including service pack levels)?

Thursday, October 21, 2004 12:33 PM by Aaron Stebner's WebLog

# Sample code to detect .NET Framework 1.0 and 1.1 and service packs

Monday, December 06, 2004 4:53 AM by AddressOf.com

# re: Determine if and what version of the .NET Framework is installed (including service pack levels)?

Wednesday, June 29, 2005 6:25 PM by Aaron Stebner's WebLog

# Sample code to detect .NET Framework 1.0 and 1.1 and service packs

Hey all,
In response to some suggestions from folks who read my blog posts describing how to detect...
Monday, January 30, 2006 8:09 PM by Lorin Thwaits

# How to determine which versions of the .NET Framework are installed on a system, along with their Service Pack levels

Monday, January 30, 2006 8:29 PM by Lorin Thwaits

# C# code to determine which versions of the .NET Framework are installed on a system, along with hotfixes and Service Packs

Anonymous comments are disabled
 
Page view tracker