summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoão Reis <reis@janeasystems.com>2018-09-24 02:55:02 +0100
committerJoão Reis <reis@janeasystems.com>2018-09-26 18:43:01 +0100
commitd6a6df9ece7bb8978e573aebb0d87a272707640e (patch)
tree1b9365af2ee1def8086771fe64c8629eba762c5f /tools
parent0461dd9b9438e55f636c46ccf22b43bf041666aa (diff)
downloadandroid-node-v8-d6a6df9ece7bb8978e573aebb0d87a272707640e.tar.gz
android-node-v8-d6a6df9ece7bb8978e573aebb0d87a272707640e.tar.bz2
android-node-v8-d6a6df9ece7bb8978e573aebb0d87a272707640e.zip
win,msi: display license notes before installing tools
PR-URL: https://github.com/nodejs/node/pull/23044 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/msvs/install_tools/install_tools.bat28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/msvs/install_tools/install_tools.bat b/tools/msvs/install_tools/install_tools.bat
index 3bd46ff4a0..db10cf1f46 100644
--- a/tools/msvs/install_tools/install_tools.bat
+++ b/tools/msvs/install_tools/install_tools.bat
@@ -1,5 +1,6 @@
@echo off
+cls
echo ====================================================
echo Tools for Node.js Native Modules Installation Script
echo ====================================================
@@ -22,4 +23,31 @@ echo available at https://github.com/nodejs/node-gyp#on-windows
echo.
pause
+cls
+REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
+echo Using this script downloads third party software
+echo ------------------------------------------------
+echo This script will direct to Chocolatey to install packages. By using
+echo Chocolatey to install a package, you are accepting the license for the
+echo application, executable(s), or other artifacts delivered to your machine as a
+echo result of a Chocolatey install. This acceptance occurs whether you know the
+echo license terms or not. Read and understand the license terms of the packages
+echo being installed and their dependencies prior to installation:
+echo - https://chocolatey.org/packages/chocolatey
+echo - https://chocolatey.org/packages/boxstarter
+echo - https://chocolatey.org/packages/python2
+echo - https://chocolatey.org/packages/visualstudio2017buildtools
+echo - https://chocolatey.org/packages/visualstudio2017-workload-vctools
+echo.
+echo This script is provided AS-IS without any warranties of any kind
+echo ----------------------------------------------------------------
+echo Chocolatey has implemented security safeguards in their process to help
+echo protect the community from malicious or pirated software, but any use of this
+echo script is at your own risk. Please read the Chocolatey's legal terms of use
+echo and the Boxstarter project license as well as how the community repository
+echo for Chocolatey.org is maintained.
+echo.
+echo You can close this window to stop now.
+pause
+
"%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