two06 / PlatformBrowser

This package allows you to retrieve the web browsers installed on the system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MintPlayer.PlatformBrowser

This package allows you to retrieve the web browsers (including Microsoft Edge) installed on the system.

NuGet package

https://www.nuget.org/packages/MintPlayer.PlatformBrowser/

Installation

NuGet package manager

Open the NuGet package manager and install the MintPlayer.PlatformBrowser package in the project

Package manager console

Install-Package MintPlayer.PlatformBrowser

Usage

Simply call the following method:

var browsers = PlatformBrowser.GetInstalledBrowsers();

Copy-n-paste code sample

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();
}

About

This package allows you to retrieve the web browsers installed on the system.


Languages

Language:C# 100.0%