dotnet_key_path = environmentRegistryPathOverride;
}
- pal::string_t sub_key = dotnet_key_path + pal::string_t(_X("\\Setup\\InstalledVersions\\")) + get_arch() + pal::string_t(_X("\\sdk"));
+ pal::string_t sub_key = dotnet_key_path + pal::string_t(_X("\\Setup\\InstalledVersions\\")) + get_arch();
pal::char_t* value = _X("InstallLocation");
// Must use RegOpenKeyEx to be able to specify KEY_WOW64_32KEY to access the 32-bit registry in all cases.
try
{
string architecture = fixture.CurrentRid.Split('-')[1];
- RegistryKey sdkKey = testKey.CreateSubKey($@"Setup\InstalledVersions\{architecture}\sdk");
- sdkKey.SetValue("InstallLocation", _regDir);
+ RegistryKey dotnetLocationKey = testKey.CreateSubKey($@"Setup\InstalledVersions\{architecture}");
+ dotnetLocationKey.SetValue("InstallLocation", _regDir);
// Add SDK versions
AddAvailableSdkVersions(_regSdkBaseDir, "9999.0.4");