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.
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";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With