Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding Installed Browsers. Microsoft Edge

I'm trying to check for installed browsers on a client's PC as a means of enabling those browsers for use in the application. I've found that all browsers have information in the registry under

HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet

and

HKEY_LOCAL_MACHINE\Software\Wow6432Node\Clients\StartMenuInternet (64-bit)

with the exception of Microsoft Edge.

Its app settings are stored under

Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main

according to someone here.

but I was hoping to find a neater solution that would encapsulate all browsers so am looking for ideas from people in the know.

like image 664
Matt Gordon Avatar asked Nov 22 '22 06:11

Matt Gordon


1 Answers

Since Microsoft Edge is the default browser, you can count that for granted and then you will find the remaining installed browsers from the registry. HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet You can also use the following code snippet to detect the default browser.

@"Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice";
like image 79
Rami Sarieddine Avatar answered Dec 09 '22 12:12

Rami Sarieddine