chrome extension directory

21,418 views
Skip to first unread message

hummer4wd

unread,
Nov 14, 2011, 5:37:11 AM11/14/11
to Chromium-extensions
How to get chrome extension directory's physical path?
ex.
I need to retrieve path of extension directory as follows:
C:\Users\<Current User>\AppData\Local\Google\Chrome\User Data\Default
\Extensions\<Extension ID>\

Can this is possible using JavaScript or in NPAPI DLL.

PhistucK

unread,
Nov 14, 2011, 5:44:02 AM11/14/11
to hummer4wd, Chromium-extensions
Only using NPAPI.
I think there is a Win32 API way to get the path of the 'current' DLL (which would reside within a version sub folder of the folder you mentioned).

PhistucK




--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


hummer4wd

unread,
Nov 15, 2011, 4:37:15 AM11/15/11
to Chromium-extensions
As DLL is not self executable, DLL always gets loaded into the calling
processs (In this case it would be Chrome.exe)

So then I need truncating logic to write to get extension folder.

On Nov 14, 3:44 pm, PhistucK <phist...@gmail.com> wrote:
> Only using NPAPI.
> I think there is a Win32 API way to get the path of the 'current' DLL
> (which would reside within a version sub folder of the folder you
> mentioned).
>
> ☆*PhistucK*
>
>
>
>
>
>
>
> On Mon, Nov 14, 2011 at 12:37, hummer4wd <anupkanas...@gmail.com> wrote:
> > How to get chrome extension directory's physical path?
> > ex.
> > I need to retrieve path of extension directory as follows:
> > C:\Users\<Current User>\AppData\Local\Google\Chrome\User Data\Default
> > \Extensions\<Extension ID>\
>
> > Can this is possible using JavaScript or in NPAPI DLL.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org.
Reply all
Reply to author
Forward
0 new messages