Reputation: 96
I have a problem. When I try launch my installed app by external request from a chrome browser. Browser copies the app to
C:\Program Files (x86)\Google\Chrome\Application\43.0.2357.130
and run it from there. It is bad because my programm makes a file and the file can't be read...
Access to the path 'C:\Program Files (x86)\Google\Chrome\Application\43.0.2357.130\lp.pat' is denied.
For example I launch my app by link "myapp://Tag". The "myapp" it's a key in the registry. The "Tag" it's a argument for the command line.
How to make that application to be started from its own directory?
Upvotes: 0
Views: 237
Reputation: 96
Problem is solved by using a Assembly.GetExecutingAssembly().Location instead of Directory.GetCurrentDirectory() for making the file.
Thanks to Adriano Repetti.
Upvotes: 1