diff options
author | João Reis <reis@janeasystems.com> | 2018-09-21 03:49:28 +0100 |
---|---|---|
committer | João Reis <reis@janeasystems.com> | 2018-09-26 18:39:43 +0100 |
commit | 0461dd9b9438e55f636c46ccf22b43bf041666aa (patch) | |
tree | c7dd82679fad6201d4d97ea1fe48eb63df1b4461 /tools | |
parent | ddbad37ecbf84a2b816e9dfa2d970a19e9fbf836 (diff) | |
download | android-node-v8-0461dd9b9438e55f636c46ccf22b43bf041666aa.tar.gz android-node-v8-0461dd9b9438e55f636c46ccf22b43bf041666aa.tar.bz2 android-node-v8-0461dd9b9438e55f636c46ccf22b43bf041666aa.zip |
win,msi: install Boxstarter from elevated shell
Boxstarter asks for elevation to install packages, but not to install
Boxstarter itself. Thus, run all the commands from an elevated
PowerShell.
Refs: https://github.com/nodejs/node/pull/22645
PR-URL: https://github.com/nodejs/node/pull/22988
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/msvs/install_tools/install_tools.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/msvs/install_tools/install_tools.bat b/tools/msvs/install_tools/install_tools.bat index 1cb3c9300d..3bd46ff4a0 100644 --- a/tools/msvs/install_tools/install_tools.bat +++ b/tools/msvs/install_tools/install_tools.bat @@ -22,4 +22,4 @@ echo available at https://github.com/nodejs/node-gyp#on-windows echo. pause -"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force; Install-BoxstarterPackage -PackageName '%~dp0\install_tools.txt'" +"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command iex ((New-Object System.Net.WebClient).DownloadString(''https://boxstarter.org/bootstrapper.ps1'')); get-boxstarter -Force; Install-BoxstarterPackage -PackageName ''%~dp0\install_tools.txt''; Read-Host ''Type ENTER to exit'' ' -Verb RunAs |