diff --git a/tasker/install.js b/tasker/install.js
index <HASH>..<HASH> 100644
--- a/tasker/install.js
+++ b/tasker/install.js
@@ -17,7 +17,7 @@ const sourceDir = utils.pathResolve(global.conf.ui.paths.source.root);
 let binNpm = 'npm';
 
 // Spawn npm.cmd if Windows and not BASH.
-if (process.env.ComSpec === 'C:\\WINDOWS\\system32\\cmd.exe') {
+if (process.env.ComSpec.toLowerCase() === 'c:\\windows\\system32\\cmd.exe') {
   binNpm = 'npm.cmd';
 }
accounting for varying case in process.env.ComSpec in windows