|
|
@@ -2868,6 +2868,7 @@ var elxr = { |
|
|
|
|
|
|
|
|
|
|
|
var regularpulltasks = function(){ return Promise.resolve(true) } |
|
|
|
|
|
|
|
if(def.elevated){ |
|
|
|
elevatedpulltasks = function() { |
|
|
|
var eBatch = [] |
|
|
@@ -2895,7 +2896,13 @@ var elxr = { |
|
|
|
} |
|
|
|
// if(elevatedpulltasks) return getTaskWithElevation( { elevatedpulltasks, regularpulltasks} ) |
|
|
|
// else return getTaskWithoutElevation({ regularpulltasks}) |
|
|
|
return any([ elevatedpulltasks, regularpulltasks ]) |
|
|
|
return elevatedpulltasks().then(()=>{ |
|
|
|
return shell_verse.isElevated().then((__isRunningElevated)=>{ |
|
|
|
if(isWin() && __isRunningElevated) return Promise.resolve(true); |
|
|
|
|
|
|
|
return regularpulltasks() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -4639,7 +4646,7 @@ function generateDependencies(){ |
|
|
|
// alert(objENV('wd')) |
|
|
|
// PB : TODO -- Convert all the cli args back to string. |
|
|
|
// __filename will sure we are launhed using the same entry point. |
|
|
|
var cargs = (processedArgs.debug ? '--inspect-brk=9228' : '') + ' ${__filename.replace(/\\/g, '\\\\')} ' + processedArgs._.join(' ') + ' ' + namedArgs.join(' '); |
|
|
|
var cargs = (processedArgs.debug ? '--inspect-brk=9226' : '') + ' ${__filename.replace(/\\/g, '\\\\')} ' + processedArgs._.join(' ') + ' ' + namedArgs.join(' '); |
|
|
|
var shell = new ActiveXObject('shell.application'); |
|
|
|
// alert('launching node privilged. ' + processedArgs['nodepath']) |
|
|
|
// shell.ShellExecute('cmd.exe', '/k where node', '', '', 10); |