title: How to get the original path of a portable Electron app?
body: <p>I have an Portable Electron App (packed with: electron-builder + asar, portable build) on Windows. I try to get the application path but it returns a path within the user\temp folder rather than the actual '.exe' file</p>
  
  <p>Is there any way to get the original app.exe path?</p>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li>app.getAppPath()</li>
  <li>__dirname</li>
  <li>require.main.filename</li>
  <li>app-root-path</li>
  <li>and a few node modules</li>
  </ul>
  
  <p>The path I'm getting from my tests:</p>
  
  <blockquote>
    <p>C:\Users\xxx\AppData\Local\Temp\xxxxxx.tmp\app</p>
  </blockquote>
  
  <p>the actual .exe Path (where the app launched from, and what i need):</p>
  
  <blockquote>
    <p>C:\Users\XXX\Documents\test\dist</p>
  </blockquote>
  
  <p>I'm just starting with Electron.</p>