-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win,msi: install tools for native modules
Add a dialog during installation with information about native modules that can optionally run a Boxstarter script at the end of the installation. This script can also be run from Start menu. Fixes: #22311 PR-URL: #22645 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
- Loading branch information
1 parent
7639390
commit ebf36cd
Showing
4 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
|
||
echo ==================================================== | ||
echo Tools for Node.js Native Modules Installation Script | ||
echo ==================================================== | ||
echo. | ||
echo This Boxstarter script will install Python and the Visual Studio Build Tools, | ||
echo necessary to compile Node.js native modules. All necessary Windows updates | ||
echo will also be installed. | ||
echo. | ||
echo This will require about 3 Gb of free disk space, plus any space necessary to | ||
echo install Windows updates. | ||
echo. | ||
echo This will take a while to run. Your computer may reboot during the | ||
echo installation, and will resume automatically. | ||
echo. | ||
echo Please close all open programs for the duration of the installation. | ||
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 | ||
|
||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
choco upgrade -y python2 | ||
choco upgrade -y visualstudio2017buildtools | ||
choco upgrade -y visualstudio2017-workload-vctools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters