Skip to content

Commit df1ca0f

Browse files
ferventcodertargos
authored andcommitted
win: clarify Boxstarter behavior on install tools
Clarify the behavior of what Boxstarter may do when it runs on a box to install all the necessary tools so that there are no surprises to the end user when the script is run. Currently there is no interface that warns the user that Boxstarter will reboot the machine possibly multiple times depending on how many dependencies need to be installed and doesn't mention a need to disable UAC. For folks who see what may look like a reboot loop, we feel it is necessary to make them aware that UAC will be disabled and they will need to take action to re-enable UAC manually if they interfere/stop the script from finishing. PR-URL: #23987 Fixes: nodejs/Release#369 Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 72204d1 commit df1ca0f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tools/msvs/install_tools/install_tools.bat

+17-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,23 @@ echo script is at your own risk. Please read the Chocolatey's legal terms of use
4747
echo and the Boxstarter project license as well as how the community repository
4848
echo for Chocolatey.org is maintained.
4949
echo.
50-
echo You can close this window to stop now.
50+
pause
51+
52+
cls
53+
echo !!!!!WARNING!!!!!
54+
echo -----------------
55+
echo Use of Boxstarter may reboot your computer automatically multiple times.
56+
echo When performing a reboot, Boxstarter will need to disable User Account
57+
echo Control (UAC) to allow the script to run immediately after the reboot. When
58+
echo the scripts have completed, Boxstarter will re-enable UAC. If you prematurely
59+
echo stop the process, UAC will need to be re-enabled manually.
60+
echo.
61+
echo Sometimes the scripts may install all necessary Windows Updates which
62+
echo could cause a high number of reboots that appear to be a reboot loop when
63+
echo in fact it is just a normal Windows Updates reboot cycle.
64+
echo.
65+
echo If this is not what you would like to occur, you can close this window
66+
echo to stop now.
5167
pause
5268

5369
"%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)