diff --git a/lib/src/child-writer/writer-proxy.js b/lib/src/child-writer/writer-proxy.js index 961aaf5c..2eb6c2bd 100644 --- a/lib/src/child-writer/writer-proxy.js +++ b/lib/src/child-writer/writer-proxy.js @@ -47,7 +47,7 @@ return isElevated().then((elevated) => { if (os.platform() === 'win32') { const elevator = Bluebird.promisifyAll(require('elevator')); - return elevator.executeAsync([ + const commandArguments = [ 'set', 'ELECTRON_RUN_AS_NODE=1', '&&', @@ -62,7 +62,12 @@ return isElevated().then((elevated) => { // the environment variables set just previously. 'call' - ].concat(process.argv), { + ].concat(process.argv); + + // For debugging purposes + console.log(`Running: ${commandArguments.join(' ')}`); + + return elevator.executeAsync(commandArguments, { hidden: true, terminating: true, doNotPushdCurrentDirectory: true,