dotnet / dotnet/aspnetcore

HostingBundle Installer Not Ingesting Registry Key Values

Open
#49,184 4 comments 0 reactions 1 assignee Claimed by @wtgodbe View on GitHub
area-infrastructure bug feature-installers
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.

![image](https://github.com/dotnet/aspnetcore/assets/10777011/a4f49810-19c9-4162-add4-061743705c20)
![image](https://github.com/dotnet/aspnetcore/assets/10777011/cf5c3997-0c3c-4279-8bfe-ddfe17107362)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.