Skip to content

Commit

Permalink
win: add prompt to tools installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Oct 31, 2018
1 parent 669c611 commit 8aeb1a2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tools/msvs/install_tools/install_tools.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@echo off

setlocal

cls
echo ====================================================
echo Tools for Node.js Native Modules Installation Script
Expand All @@ -20,8 +22,15 @@ echo.
echo You can close this window to stop now. This script can be invoked from the
echo Start menu. Detailed instructions to install these tools manually are
echo available at https://github.com/nodejs/node-gyp#on-windows
echo.
pause
:acceptretry
echo.
echo Your computer may REBOOT SEVERAL TIMES WITHOUT FURTHER WARNING.
echo Please type YES followed by enter to confirm that you have saved all your
set /p "ACCEPT_PROMPT=work and closed all open programs: "
if /i not "%ACCEPT_PROMPT%"=="yes" (
echo Please type YES or close the window to exit.
goto acceptretry
)

cls
REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
Expand Down

0 comments on commit 8aeb1a2

Please sign in to comment.