-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostfxr Installation Location Path Key May Diverge from Specification #109974
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov |
The runtime/src/installer/pkg/sfx/installers/host.wxs Lines 35 to 39 in e33be4d
That is what the host uses when determining registered installs. It does not look under the 64-bit hive or at
Added a clarification to the design doc: dotnet/designs#325
Looking at the setup authoring, the runtime/src/installer/pkg/sfx/installers/host.wxs Lines 41 to 55 in e33be4d
Can you check the 32-bit view? |
Description
sharedhost has Path but InstallLocation does not, and does not exist
My understanding based on this spec is that the registry should contain a path key to the dotnet host. I looked at my registry to see if that was valid. I was able to find a Path key under a location very similar to what the spec stated, but it was in
sharedhost
, which seems to be inconsistent with the design decision determined in https://github.com/dotnet/designs/blob/main/accepted/2021/install-location-per-architecture.md#:~:text=On%20Windows%20the,arch%3E%5CInstallLocation, whereInstallLocation
is mentioned as the place in which the install location is stored.On my machine, this is stored in
sharedhost
, notInstallLocation
. My machine is Win 11 and x64.runtime/src/installer/pkg/sfx/installers/dotnet-host.proj
Line 11 in e33be4d
That seems to be what the code does as well. I didn't see any reference to InstallLocation as mentioned in the doc. I also didnt see a new doc describing this
sharedhost
behavior. Is that expected? Or, Is this design / spec wrong and needs to be updated? Or am I confused and this Path key is for something else, and there never was a place where the path to .NET is marked in the registry?WoW Node Missing Path Key
There is also information that can be put in the Wow Node. For this information, it doesn't appear to have a
Path
key? Is that expected?Registry Inconsistency with
--info
Here's another interesting observation. My 9.0.0-preview.7.24405.7 host running
dotnet --info
says there is an x86 dotnet registered atInstallLocation
, but that doesn't exist on my registry. It's got asharedhost
key, though. The registry above showshostfxr
under theInstalledVersions
node and some other installation information which is good, but none of those seem to store the path. IsInstalledVersions
a placeholder text, then, and substitutable forhostfxr
,sharedhost
, etc?cc @elinor-fung @richlander
Reproduction Steps
Install .NET 9 or .NET 8 preview host on various machines and observe regedit behavior can be different. Install the .NET 9 host and see sharedhost is used instead of InstallLocation.
Expected behavior
Should it not be in
InstallLocation
?Actual behavior
See above.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: