This package allows you to retrieve the web browsers (including Microsoft Edge) installed on the system.
https://www.nuget.org/packages/MintPlayer.PlatformBrowser/
Open the NuGet package manager and install the MintPlayer.PlatformBrowser package in the project
Install-Package MintPlayer.PlatformBrowser
Simply call the following method:
var browsers = PlatformBrowser.GetInstalledBrowsers();
var browsers = PlatformBrowser.GetInstalledBrowsers();
foreach (var browser in browsers)
{
Console.WriteLine($"Browser: {browser.Name}");
Console.WriteLine($"Executable: {browser.ExecutablePath}");
Console.WriteLine($"Icon path: {browser.IconPath}");
Console.WriteLine($"Icon index: {browser.IconIndex}");
Console.WriteLine();
}