dotnet / dotnet/sdk

[NETSDKE2E][Regression] Failed to install NET11 RC2 SDK in a custom location.

Open
#56,112 4 comments 0 reactions 0 assignees View on GitHub
untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Regression Info
Not repro on 11.0.100-rc.1.26425.128

### Describe the bug

NET11 RC2 SDK cannot been installed in a custom location.

### Steps to reproduce

1. Clean win-x64 machine
2. Install 11.0.100-rc.2.26452.108-win-x64.exe in a custom location
`dotnet-sdk-11.0.100-rc.2.26452.108-win-x64.exe /install DOTNETHOME_X64="C:\dotnet\x64" DOTNETHOME_X86="C:\dotnet\x86" /log "installation.log" /quiet /norestart`
4. Check the sdk was installed in custom location

### Expected behavior

SDK installed in custom location successfully.

### Actual behavior

SDK was installed in %ProgramFiles% instead of custom location.

Image

### Is this a regression?

Not repro on 11.0.100-rc.1.26425.128

Image

### Are there any workarounds?

No

### dotnet --info output

```console
.NET SDK:
Version: 11.0.100-rc.2.26452.108
Commit: 4ecf58080c
Workload version: 11.0.100-manifests.ba4b9bda
MSBuild version: 18.12.0-1.26452.108+4ecf58080

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\11.0.100-rc.2.26452.108

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 11.0.0-rc.2.26452.108
Architecture: x64
Commit: 4ecf58080c

.NET SDKs installed:
11.0.100-rc.2.26452.108 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 11.0.0-rc.2.26452.108 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 11.0.0-rc.2.26452.108 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 11.0.0-rc.2.26452.108 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
```

### IDE version

_No response_

### Other details
Preconditions:
Visual Studio is not installed
There are no SDKs on the machine
The file: %ProgramFiles%\dotnet\dotnet.exe does not exist
The file: %ProgramFiles(x86)%\dotnet\dotnet.exe does not exist
The following reg keys do not exist:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sdk\InstallLocation
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sdk\InstallLocation

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with dotnet-sdk-11.0.100-rc.2.26452.108-win-x64.exe and the documented /install command using DOTNETHOME_X64 and DOTNETHOME_X86. Inspect where the installer places the SDK and how the listed registry keys and existing Program Files paths affect that choice. Done means a clean Windows machine installs the SDK in both requested custom locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.