Modify the InstallLocation registry key; core-setup (#5238)
* Modify the 'InstallLocation' registry key.
This commit is contained in:
Родитель
5149218684
Коммит
b344ca9aaf
|
@ -261,7 +261,7 @@ bool get_sdk_self_registered_dir(pal::string_t* recv)
|
|||
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.
|
||||
|
|
|
@ -641,8 +641,8 @@ namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.MultilevelSDKLookup
|
|||
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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче