Skip to content

Commit 3b895d1

Browse files
joaocgreistargos
authored andcommitted
win,msi: display license notes before installing tools
PR-URL: #23044 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cf284c8 commit 3b895d1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tools/msvs/install_tools/install_tools.bat

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@echo off
22

3+
cls
34
echo ====================================================
45
echo Tools for Node.js Native Modules Installation Script
56
echo ====================================================
@@ -22,4 +23,31 @@ echo available at https://github.com/nodejs/node-gyp#on-windows
2223
echo.
2324
pause
2425

26+
cls
27+
REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
28+
echo Using this script downloads third party software
29+
echo ------------------------------------------------
30+
echo This script will direct to Chocolatey to install packages. By using
31+
echo Chocolatey to install a package, you are accepting the license for the
32+
echo application, executable(s), or other artifacts delivered to your machine as a
33+
echo result of a Chocolatey install. This acceptance occurs whether you know the
34+
echo license terms or not. Read and understand the license terms of the packages
35+
echo being installed and their dependencies prior to installation:
36+
echo - https://chocolatey.org/packages/chocolatey
37+
echo - https://chocolatey.org/packages/boxstarter
38+
echo - https://chocolatey.org/packages/python2
39+
echo - https://chocolatey.org/packages/visualstudio2017buildtools
40+
echo - https://chocolatey.org/packages/visualstudio2017-workload-vctools
41+
echo.
42+
echo This script is provided AS-IS without any warranties of any kind
43+
echo ----------------------------------------------------------------
44+
echo Chocolatey has implemented security safeguards in their process to help
45+
echo protect the community from malicious or pirated software, but any use of this
46+
echo script is at your own risk. Please read the Chocolatey's legal terms of use
47+
echo and the Boxstarter project license as well as how the community repository
48+
echo for Chocolatey.org is maintained.
49+
echo.
50+
echo You can close this window to stop now.
51+
pause
52+
2553
"%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)