diff --git a/src/Files.App/Utils/Global/WSLDistroManager.cs b/src/Files.App/Utils/Global/WSLDistroManager.cs index 63adc28a49c6..c869bef905f0 100644 --- a/src/Files.App/Utils/Global/WSLDistroManager.cs +++ b/src/Files.App/Utils/Global/WSLDistroManager.cs @@ -29,10 +29,10 @@ public static async Task UpdateDrivesAsync() try { // Check if WSL is installed - const string WslRegistryPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss"; + const string WslRegistryPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\MSI"; using (var key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(WslRegistryPath)) { - if (key != null && key.GetSubKeyNames().Length == 0) + if (key is null || key.GetValue("InstallLocation") is null) return; }