On Windows find Rider installed for CurrentUser
This commit is contained in:
parent
620030b600
commit
c95e20a089
1 changed files with 20 additions and 11 deletions
|
@ -218,7 +218,17 @@ namespace GodotTools.Ides.Rider
|
||||||
|
|
||||||
private static void CollectPathsFromRegistry(string registryKey, List<string> installPaths)
|
private static void CollectPathsFromRegistry(string registryKey, List<string> installPaths)
|
||||||
{
|
{
|
||||||
|
using (var key = Registry.CurrentUser.OpenSubKey(registryKey))
|
||||||
|
{
|
||||||
|
CollectPathsFromRegistry(installPaths, key);
|
||||||
|
}
|
||||||
using (var key = Registry.LocalMachine.OpenSubKey(registryKey))
|
using (var key = Registry.LocalMachine.OpenSubKey(registryKey))
|
||||||
|
{
|
||||||
|
CollectPathsFromRegistry(installPaths, key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void CollectPathsFromRegistry(List<string> installPaths, RegistryKey key)
|
||||||
{
|
{
|
||||||
if (key == null) return;
|
if (key == null) return;
|
||||||
foreach (var subkeyName in key.GetSubKeyNames().Where(a => a.Contains("Rider")))
|
foreach (var subkeyName in key.GetSubKeyNames().Where(a => a.Contains("Rider")))
|
||||||
|
@ -234,7 +244,6 @@ namespace GodotTools.Ides.Rider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static string[] CollectPathsFromToolbox(string toolboxRiderRootPath, string dirName, string searchPattern,
|
private static string[] CollectPathsFromToolbox(string toolboxRiderRootPath, string dirName, string searchPattern,
|
||||||
bool isMac)
|
bool isMac)
|
||||||
|
|
Loading…
Reference in a new issue