Query the registry using PowerShell for Version 1-4 seems wrong for version 4.
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
**Issue description**
Currently the PowerShell script for versions 1-4 seems to exclude the key v4. I am running a Windows Server 2003 machine and it has version 4.0.30319 installed which shows up under this key, then under v4.0 I have a entry that says "deprecated". Is there any reason we are excluding this key from this script although it contains the Install value of 1 which indicates it is installed?
**Target framework**
- [ ] .NET Core
- [x] .NET Framework 4.0.30319
- [ ] .NET Standard
dotnet --info output or About VS info
```console
```
---
#### Document Details
⚠ *Do not edit this section. It is required for learn.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://learn.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#query-the-registry-using-powershell-older-framework-versions)
* 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
Assessment
This issue has not been assessed yet.