Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell if .NET 3.5 SP1 is installed?

How can I find out if SP1 has been installed on a server which has .NET 3.5?

like image 583
Guy Avatar asked Oct 13 '08 20:10

Guy


People also ask

Is .NET 3.5 installed on my computer?

First, you can check if the component is already installed on your device. Go to Control Panel > Programs > Turn Windows features on or off, verify if . NET Framework 3.5 checkbox is selected and then proceed with the software installation.


1 Answers

Look at HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\. One of these must be true:

  • The Version value in that key should be 3.5.30729.01
  • Or the SP value in the same key should be 1

In C# (taken from the first comment), you could do something along these lines:

const string name = @"SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5"; RegistryKey subKey = Registry.LocalMachine.OpenSubKey(name); var version = subKey.GetValue("Version").ToString(); var servicePack = subKey.GetValue("SP").ToString(); 
like image 148
Ray Avatar answered Sep 25 '22 06:09

Ray



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!