-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win: do not use Boxstarter to install tools #24677
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,20 @@ | |
setlocal | ||
|
||
cls | ||
|
||
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. Note that Boxstarter, | ||
echo Chocolatey and required Windows updates will also be installed. | ||
echo This script will install Python and the Visual Studio Build Tools, necessary | ||
echo to compile Node.js native modules. Note that Chocolatey and required Windows | ||
echo updates 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 install Windows updates. This will take a while to run. | ||
echo. | ||
echo Please close all open programs for the duration of the installation. | ||
echo If the installation fails, please ensure Windows is fully updated and reboot | ||
echo your computer before trying again. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we clarify exactly what this means? Does this mean trigger the entire msi installation again? Can they get back to the prompt to select the Chocolatey installation? Or is this referring to manually triggering this .bat file? |
||
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 | ||
|
@@ -26,6 +25,7 @@ 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 ------------------------------------------------ | ||
|
@@ -36,7 +36,6 @@ 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on the Chocolatey packages being installed, this one is no longer being directly installed, so I am assuming that it is coming in as a dependency. Since you are not listing all the dependent packages, I don't think it is right to explicitly call this one out. |
||
echo - https://chocolatey.org/packages/visualstudio2017-workload-vctools | ||
|
@@ -46,39 +45,10 @@ 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 as well as how the community repository for Chocolatey.org is maintained. | ||
echo. | ||
pause | ||
|
||
cls | ||
echo !!!!!WARNING!!!!! | ||
echo ----------------- | ||
echo This script should make installing the tools as easy as possible. Hence, it | ||
echo WILL NOT OFFER ANY CUSTOMIZATION. If there's any parameter you'd like to | ||
echo customize (like installation directory or features), or if there's any | ||
echo special rule or policy that your computer should comply to (like not being | ||
echo able to log in as the user with administrative privileges), please follow the | ||
echo instructions to download and execute the installers directly: | ||
echo https://github.com/nodejs/node-gyp#on-windows | ||
echo. | ||
echo Use of Boxstarter may reboot your computer automatically multiple times. | ||
echo When performing a reboot, Boxstarter will need to disable User Account | ||
echo Control (UAC) to allow the script to run immediately after the reboot. When | ||
echo the scripts have completed, Boxstarter will re-enable UAC. If you prematurely | ||
echo stop the process, UAC will need to be re-enabled manually. | ||
echo. | ||
echo Sometimes the scripts may install all necessary Windows Updates which | ||
echo could cause a high number of reboots that appear to be a reboot loop when | ||
echo in fact it is just a normal Windows Updates reboot cycle. | ||
: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 to confirm, or close the window to exit. | ||
goto acceptretry | ||
) | ||
|
||
"%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 | ||
"%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://chocolatey.org/install.ps1'')); choco upgrade -y python2 visualstudio2017-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason that this part has been removed? I think this advice is still valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really close any program to install a software on Windows? I for one never do, and I haven't seen anyone do that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While in most case there are no issues, this is always good advice to make sure there is no interference. I'll add it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aduh95 One of the issues we had raised several times on the Boxstarter repo is that users do not know that Boxstarter will be rebooting their machines and they lose their work.