Skip to content

Commit 700b6b6

Browse files
committed
Search for multirust before searching global official install path
1 parent 05bd021 commit 700b6b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VisualRust.Shared/Environment.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ private static IEnumerable<string> GetAllInstallPaths()
8585
{
8686
return GetInstallRoots(RegistryHive.CurrentUser, RegistryView.Registry64)
8787
.Union(GetInstallRoots(RegistryHive.CurrentUser, RegistryView.Registry32))
88+
.Union(new string[] { GetMultirustInstallRoot() })
8889
.Union(GetInstallRoots(RegistryHive.LocalMachine, RegistryView.Registry64))
8990
.Union(GetInstallRoots(RegistryHive.LocalMachine, RegistryView.Registry32))
90-
.Union(GetInnoInstallRoot())
91-
.Union(new string[] { GetMultirustInstallRoot() });
91+
.Union(GetInnoInstallRoot());
9292
}
9393
else
9494
{
9595
return GetInstallRoots(RegistryHive.CurrentUser, RegistryView.Registry32)
96+
.Union(new string[] { GetMultirustInstallRoot() })
9697
.Union(GetInstallRoots(RegistryHive.LocalMachine, RegistryView.Registry32))
97-
.Union(GetInnoInstallRoot())
98-
.Union(new string[] { GetMultirustInstallRoot() });
98+
.Union(GetInnoInstallRoot());
9999
}
100100
}
101101

0 commit comments

Comments
 (0)