Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to get a list of the extensions added to browsers through C++ mfc. And if possible how to enable and disable those extensions.

What I have tried:

I tried to find some database related to this extension data in /appdata/local/ but ended up with empty hand.
Posted
Updated 7-Jun-17 0:09am
Comments
Richard MacCutchan 22-Sep-16 4:31am    
Go to the relevant developer website and study the browser documentation.

1 solution

Your mileage may vary depending on the browser version (MS Edge vs IE etc.) so it would be best to do some more research on each one as needed.
Internet Explorer
The Browser Helper Objects are registered under
HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Browser Helper Objects

IE toolbars are registered under
HKLM\Software\Microsoft\Internet Explorer\Toolbar

Chrome
Storage Location for Packed Extensions
Navigate to chrome://version/ and look for Profile Path, it is your default directory and Extensions Folder is where all the extensions, apps, themes are stored
Windows
If my Profile Path is %userprofile%\AppData\Local\Google\Chrome\User Data\Default then my storage directory is:
C:\Users\<Your_User_Name>\AppData\Local\Google\Chrome\User Data\Default\Extensions

Linux
~/.config/google-chrome/Default/Extensions/

MacOS
~/Library/Application\ Support/Google/Chrome/Default/Extensions

Chromium
~/.config/chromium/Default/Extensions

Thus for each browser there will be a different file structure or on Microsoft browsers probably Registry key layout.
Custom code all the way...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900