HostingBundle Installer Not Ingesting Registry Key Values
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Setting registry key values in "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\dotnet\host\options\6.0" should be interpreted the same way the options are when passed in via command line as shown [here](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-7.0#options).
Currently, these registry values are skipped over and are not being passed to the installer as options, causing upgrades to fail in environments using IIS Shared Config.


### Expected Behavior
Setting the subkey OPT_NO_SHARED_CONFIG_CHECK to a value of 1 under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\dotnet\host\options\6.0 should be equivalent to running the hostingbundle installer like so:
dotnet-hosting-6.0.19-win.exe OPT_NO_SHARED_CONFIG_CHECK=1
### Steps To Reproduce
With the hostingbundle installer, run a repair of upgrade process on a Windows Server running IIS with shared config enabled and the registry keys set shown in the description.
### Exceptions (if any)
_No response_
### .NET Version
6.0.19
### Anything else?
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-7.0#options
Contributor guide
Assessment
This issue has not been assessed yet.