Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d17bf1

Browse filesBrowse files
joaocgreisMylesBorins
authored andcommitted
win: add prompt to tools installation script
Fixes: nodejs/Release#369 PR-URL: #23987 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 589f0d2 commit 5d17bf1
Copy full SHA for 5d17bf1

File tree

Expand file treeCollapse file tree

1 file changed

+10
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-3
lines changed
Open diff view settings
Collapse file

‎tools/msvs/install_tools/install_tools.bat‎

Copy file name to clipboardExpand all lines: tools/msvs/install_tools/install_tools.bat
+10-3Lines changed: 10 additions & 3 deletions
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
@@ -61,9 +63,14 @@ echo.
6163
echo Sometimes the scripts may install all necessary Windows Updates which
6264
echo could cause a high number of reboots that appear to be a reboot loop when
6365
echo in fact it is just a normal Windows Updates reboot cycle.
66+
:acceptretry
6467
echo.
65-
echo If this is not what you would like to occur, you can close this window
66-
echo to stop now.
67-
pause
68+
echo Your computer may REBOOT SEVERAL TIMES WITHOUT FURTHER WARNING.
69+
echo Please type YES followed by enter to confirm that you have saved all your
70+
set /p "ACCEPT_PROMPT=work and closed all open programs: "
71+
if /i not "%ACCEPT_PROMPT%"=="yes" (
72+
echo Please type YES to confirm, or close the window to exit.
73+
goto acceptretry
74+
)
6875

6976
"%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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.