Skip to content

Commit 23c02c0

Browse files
committed
win: add prompt to tools installation script
Fixes: nodejs/Release#369
1 parent 91d99c6 commit 23c02c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tools/msvs/install_tools/install_tools.bat

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
22

3+
setlocal
4+
35
cls
46
echo ====================================================
57
echo Tools for Node.js Native Modules Installation Script
@@ -64,6 +66,14 @@ echo in fact it is just a normal Windows Updates reboot cycle.
6466
echo.
6567
echo If this is not what you would like to occur, you can close this window
6668
echo to stop now.
67-
pause
69+
:acceptretry
70+
echo.
71+
echo Your computer may REBOOT SEVERAL TIMES WITHOUT FURTHER WARNING.
72+
echo Please type YES followed by enter to confirm that you have saved all your
73+
set /p "ACCEPT_PROMPT=work and closed all open programs: "
74+
if /i not "%ACCEPT_PROMPT%"=="yes" (
75+
echo Please type YES to confirm, or close the window to exit.
76+
goto acceptretry
77+
)
6878

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