0

i build chrome extension and i use NPAPI to open exe file. To open the file i need full path(C:\Program Files\test.exe). I attach the "test.exe" to my project and i want to open it. The problem is that i can't know where the file after the installation. I need to get something like this:

C:\Users\**User Name**\AppData\Local\Google\Chrome\User Data\Default\Extensions\**App Name**\**App Version**\test.exe

How can i get this? (All I can found is the "App Name" and the "App Version")

dolev
  • 1
  • The system environment variable `%LOCALAPPDATA%` should point to `C:\Users\**User Name**\AppData\Local` – rsanchez Dec 09 '13 at 18:33
  • Just a heads-up: If user is using Chrome profiles, then `Default` might not be `Default` (but I have no idea how you could solve this problem). – gkalpak Dec 09 '13 at 19:43
  • See also http://stackoverflow.com/questions/6924195/get-dll-path-at-runtime – rsanchez Dec 09 '13 at 22:35

0 Answers0