How to locate Google Chrome extension dir

喜欢而已 提交于 2019-12-02 13:01:18

问题


Hi i'm installing extensions by programmatically by a little c# program.

I just did see the software doesn't work on my friend.

i did see his chrome directory is not at %appdata% folder its at program files?

so how to find the real latest version of chrome directory for install plugins?

Google says

 Windows: 
 chrome_root\Application\chrome_version\Extensions\ 
 Example: c:\Users\Me\AppData\Local\Google\Chrome\Application\6.0.422.0\Extensions\

but how to find the chrome_root?


回答1:


  1. Visit chrome://version.
  2. Look at Profile Path.
  3. Extensions can be found in the Extensions subdirectory of the path you found at the previous step.

You can also load the extension using the --load-extension flag:

chrome.exe --load-extension=path/to/extension



回答2:


The recommended mechanism for installing extensions programmatically is external extensions. It has the advantage of not depending on Chrome paths that might change, instead you can use a stable registry key or JSON file.



来源:https://stackoverflow.com/questions/12872807/how-to-locate-google-chrome-extension-dir

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!