Skip to content

Commit cf284c8

Browse files
joaocgreistargos
authored andcommitted
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: #22645 PR-URL: #22988 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2731d08 commit cf284c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msvs/install_tools/install_tools.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ echo available at https://github.com/nodejs/node-gyp#on-windows
2222
echo.
2323
pause
2424

25-
"%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'"
25+
"%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

0 commit comments

Comments
 (0)