I have a Portable Electron application (complete with: electronic builder + asar, portable assembly) on Windows. I am trying to get the path to the application, but it returns the path in the user \ temp folder, not the actual .exe file.
Is there a way to get the source path of app.exe?
I tried the following:
- app.getAppPath ()
- __ directory_name
- require.main.filename
- root path application
- and several node modules
The path I get from my tests is:
C: \ Users \ xxx \ AppData \ Local \ Temp \ xxxxxx.tmp \ application
actual .exe path (where the application starts from and what I need):
C: \ Users \ XXX \ Documents \ test \ distance
I am just starting with Electron.