From 4aaa936803ffd5f985dd0e42a7b69238f6e67a22 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Wed, 1 Mar 2017 11:48:51 -0800 Subject: [PATCH] Fix init check for process.windowsStore Windows now allows users to move their `WindowsApps` folder, meaning that it can end up on a different drive (and outside of `Program Files`). --- lib/common/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/init.js b/lib/common/init.js index 44939b52f41b..00acd6f06ace 100644 --- a/lib/common/init.js +++ b/lib/common/init.js @@ -56,7 +56,7 @@ if (process.platform === 'win32') { // // Nobody else get's to install there, changing the path is forbidden // We can therefore say that we're running as appx - if (__dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) { + if (__dirname.includes('\\WindowsApps\\')) { process.windowsStore = true } }