<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>7.0.0 and up</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10, 1903 </li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>6.1.7 </li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>

<p dir="auto">process.windowsStore returns true</p>
<h3 dir="auto">Actual Behavior</h3>

<p dir="auto">process.windowsStore returns undefined</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Package and run App as a Windows Store App</p>




<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>Tested on electron 5.0.0, through 5.0.6</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10 (Tested on both 1803 and 1809)</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">process.windowsStore</code> should return true if running inside of an appx package, as described in <a href="https://electronjs.org/docs/api/process#processwindowsstore" rel="nofollow">https://electronjs.org/docs/api/process#processwindowsstore</a></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">process.windowsStore</code> returns undefined, even when running in an appx package</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">I forked electron-quick-start to demonstrate the issue I found.<br>
<a href="https://github.com/dangeredwolf/electron-quick-start">https://github.com/dangeredwolf/electron-quick-start</a></p>
<p dir="auto">You can then use <code class="notranslate">npm run buildWindows</code> to create the appx.</p>
<p dir="auto">If you're unfamiliar with appx deployment, appx files need to be signed to be installed, even in developer mode. <a href="https://docs.microsoft.com/en-gb/windows/uwp/packaging/sign-app-package-using-signtool" rel="nofollow">This is basically how to do that (from Microsoft's docs)</a></p>
<p dir="auto"><code class="notranslate">process.windowsStore</code> is undefined in both the main and renderer processes when installed as an AppX</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">I set it up to throw a dialog box of whatever process.windowsStore is</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2636265/57185775-bb230280-6e9f-11e9-901b-0bb384de9fe8.png"><img src="https://user-images.githubusercontent.com/2636265/57185775-bb230280-6e9f-11e9-901b-0bb384de9fe8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It's obvious from electron itself that it's running from C:\Program Files\WindowsApps</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2636265/57185783-d726a400-6e9f-11e9-8d05-bfc38a959897.png"><img src="https://user-images.githubusercontent.com/2636265/57185783-d726a400-6e9f-11e9-8d05-bfc38a959897.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">After further testing, I confirmed that this is an issue introduced in Electron 5.0.0. You can test this by cloning <a href="https://github.com/dangeredwolf/electron-quick-start">the electron-quick-start fork with process.windowsStore checks</a> and changing <code class="notranslate">package.json</code>'s <code class="notranslate">"devDependencies"</code>&gt;<code class="notranslate">"electron"</code> from <code class="notranslate">"^5.0.0"</code> to <code class="notranslate">"^4.2.0"</code></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2636265/57185900-e9561180-6ea2-11e9-84b7-75a4e3ef7a48.png"><img src="https://user-images.githubusercontent.com/2636265/57185900-e9561180-6ea2-11e9-84b7-75a4e3ef7a48.png" alt="image" style="max-width: 100%;"></a></p>