Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 386 Vote(s) - 3.46 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get full list of .NET framework version installed

#1
I need to get the list of all framework versions that are installed in the computer, buy I need the full name, as it is in the Add/Remove programs.
Like: "Microsoft .NET Framework 3.5 SP1" or "Microsoft .NET Framework 2.0 Service Pack 2"

is there any way to get that list (in Windows XP and 7)?
Reply

#2
You can get the framework versions including their names from the Windows Registery

See these links for reference:

[To see links please register here]


[To see links please register here]

Reply

#3
Thank, I use those links to get my answer, this was waht I did:

string path = @"SOFTWARE\Microsoft\NET Framework Setup\NDP";
List<string> display_framwork_name = new List<string>();

RegistryKey installed_versions = Registry.LocalMachine.OpenSubKey(path);
string[] version_names = installed_versions.GetSubKeyNames();

for (int i = 1; i <= version_names.Length - 1; i++)
{
string temp_name = "Microsoft .NET Framework " + version_names[i].ToString() + " SP" + installed_versions.OpenSubKey(version_names[i]).GetValue("SP");
display_framwork_name.Add(temp_name);
}

return display_framwork_name;


So my output was:
"Microsoft .NET Framework v3.5 SP1"
"Microsoft .NET Framework v3.0 SP2"
and so on....
Reply

#4
You can use the command `dotnet --list-sdks` in the terminal to list all installed sdks.

[To see links please register here]


```
2.1.701 [C:\Program Files\dotnet\sdk]
3.0.100-preview5-011568 [C:\Program Files\dotnet\sdk]
5.0.401 [C:\Program Files\dotnet\sdk]
6.0.401 [C:\Program Files\dotnet\sdk]
7.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]
7.0.100-rc.1.22431.12 [C:\Program Files\dotnet\sdk]
```

The command `dotnet --list-runtimes` will list the installed runtimes.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through