Modify the 'InstallLocation' registry key. (#7877)

Before = SOFTWARE\dotnet\Setup\InstalledVersions\<arch>\sdk
After = SOFTWARE\dotnet\Setup\InstalledVersions\<arch>
This commit is contained in:
John Beisner 2019-02-25 11:05:00 -08:00 committed by Pavel Krymets
parent 23c528c176
commit f0cb6cc68b
2 changed files with 3 additions and 3 deletions

View File

@ -264,11 +264,11 @@ HostFxrResolver::GetAbsolutePathToDotnet(
if (isWow64Process)
{
regKeySubSection = L"SOFTWARE\\WOW6432Node\\dotnet\\Setup\\InstalledVersions\\x64\\sdk";
regKeySubSection = L"SOFTWARE\\WOW6432Node\\dotnet\\Setup\\InstalledVersions\\x64";
}
else
{
regKeySubSection = L"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\x86\\sdk";
regKeySubSection = L"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\x86";
}
const auto installationLocation = RegistryKey::TryGetString(

View File

@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
var installDir = DotNetCommands.GetDotNetInstallDir(runtimeArchitecture);
using (new TestRegistryKey(
localMachine,
"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\" + runtimeArchitecture + "\\sdk",
"SOFTWARE\\dotnet\\Setup\\InstalledVersions\\" + runtimeArchitecture,
"InstallLocation",
installDir))
{