Skip to content

Conversation

@PranavSenthilnathan
Copy link
Member

@PranavSenthilnathan PranavSenthilnathan commented Oct 7, 2025

#118092 causes the path to dotnet.exe to be removed from PATH even when there are previous installs. For a repro, (1) install .NET 9.0, (2) install .NET 10 RC1, (3) uninstall .NET 10 RC1. The path to dotnet.exe will be removed from PATH even though .NET 9.0 is still installed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts a previous change that conditionally set the system PATH for the .NET host installer. The revert addresses an issue where uninstalling a newer .NET version would incorrectly remove the PATH entry even when older .NET versions remained installed.

  • Reverts conditional PATH setting logic that used registry-based checks
  • Restores unconditional PATH setting behavior to prevent PATH removal during partial uninstalls
  • Changes installer upgrade scheduling to maintain PATH integrity across version changes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/installer/pkg/sfx/installers/host.wxs Removes conditional PATH setting logic and restores Environment elements directly in components
src/installer/pkg/sfx/installers/dotnet-host.proj Changes upgrade schedule and removes conditional PATH property references

@PranavSenthilnathan PranavSenthilnathan merged commit af46988 into dotnet:main Oct 9, 2025
78 checks passed
@PranavSenthilnathan
Copy link
Member Author

/backport to release/10.0

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18383401933

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants