<p dir="auto">OS: win8 + 64<br>
Electron: 0.35.4</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app.commandLine.appendSwitch('ppapi-flash-path', __dirname + '/pepflashplayer.dll');
app.commandLine.appendSwitch('ppapi-flash-version', '10.0.0.245');"><pre class="notranslate"><span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">commandLine</span><span class="pl-kos">.</span><span class="pl-en">appendSwitch</span><span class="pl-kos">(</span><span class="pl-s">'ppapi-flash-path'</span><span class="pl-kos">,</span> <span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/pepflashplayer.dll'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">commandLine</span><span class="pl-kos">.</span><span class="pl-en">appendSwitch</span><span class="pl-kos">(</span><span class="pl-s">'ppapi-flash-version'</span><span class="pl-kos">,</span> <span class="pl-s">'10.0.0.245'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">when open a page which have flash object. a cmd window show 'NOT SANDBOXED' than quickly closed auto.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9499016/11710010/0dad245c-9f57-11e5-8508-937361bd19c1.png"><img src="https://cloud.githubusercontent.com/assets/9499016/11710010/0dad245c-9f57-11e5-8508-937361bd19c1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">how can i configure to stop show the cmd window</p>
<ol dir="auto">
<li>Create a Win32 Electron app that sets up Pepper Flash</li>
<li>Run the EXE from Explorer (you won't see this if you run Electron from a console)</li>
<li>Be very observant</li>
</ol>
<p dir="auto">You'll notice a DOS box flash open then immediately close. If we use Image File Execution Options to set a dummy EXE as our Debugger for "Cmd.exe" (I used Notepad), we can see what's happening:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/021999aee00ba57770973fa43813d3b6a1eb99352c280e5a25dff1b56388dbb1/687474703a2f2f636c2e6c792f696d6167652f3249336130323267317033672f636f6e74656e7423706e67"><img src="https://camo.githubusercontent.com/021999aee00ba57770973fa43813d3b6a1eb99352c280e5a25dff1b56388dbb1/687474703a2f2f636c2e6c792f696d6167652f3249336130323267317033672f636f6e74656e7423706e67" alt="" data-canonical-src="http://cl.ly/image/2I3a022g1p3g/content#png" style="max-width: 100%;"></a></p>
<p dir="auto">PPAPI process is trying to echo "NOT SANDBOXED", but because we don't have an attached Console, it creates one</p>