diff --git a/bin/elevate.cmd b/bin/elevate.cmd index ba1bf4b9dccf68a84d5537cf58d66d361be502f3..e168318ca23d6efd79ede50f69fdb89d492870a0 100644 --- a/bin/elevate.cmd +++ b/bin/elevate.cmd @@ -1,5 +1,12 @@ @setlocal @echo off + +:: Try without elevation, in case %NVM_SYMLINK% is a user-owned path and the +:: machine has Windows 10 Developer Mode enabled +%* +if %ERRORLEVEL% LSS 1 goto :EOF + +:: The command failed without elevation, try with elevation set CMD=%* set APP=%1 start wscript //nologo "%~dpn0.vbs" %*