dotnet / dotnet/docs

Issue determining .NET version by reading registry

Open
#28,293 1 comment 0 reactions 1 assignee Claimed by @gewarren View on GitHub
app-compat/subsvc dotnet-framework/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

[This article](https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed) describes how to determine which versions of .NET are installed on a Windows machine.

We have a Windows Server 2019 machine which has .NET Framework 4.8 installed, having previously had 4.7.2 installed. The following keys exist:

`HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full`
The `Release` DWORD contains the value 461814, corresponding to the .NET Framework 4.7.2.

`HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\1033`
The `Release` DWORD contains the value 528040, corresponding to the .NET Framework 4.8.

So there seems to be more to this than what's outlined in the article. Should we be checking both locations? 1033 seems to be a locale ID, so could the number differ for different locales?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 2115da38-e95e-46fc-1e2d-da88ef92c6cf
* Version Independent ID: a3790e8a-0654-851b-c991-ab7382025406
* Content: [Determine which .NET Framework versions are installed - .NET Framework](https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed)
* Content Source: [docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md](https://github.com/dotnet/docs/blob/main/docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md)
* Product: **dotnet-framework**
* Technology: **dotnet-appcompat**
* GitHub Login: @gewarren
* Microsoft Alias: **gewarren**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.