GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — win,msi: install Boxstarter from elevated shell by joaocgreis · Pull Request #22988 · nodejs/node

Conversation

@joaocgreis

@joaocgreis joaocgreis commented Sep 21, 2018

Copy link
Copy Markdown
Member

This fixes the issue described in #22645 (comment) (cc @targos).

Boxstarter asks for elevation to install packages, but not to install Boxstarter itself. If Boxstarter is already installed, the command succeeds with or without elevation. This PR changes the batch file to run all the commands from an elevated PowerShell.

LTS and semver: This is a bug fix for #22645, which is currently only in master. That PR is semver-minor without a strong case for backporting, so this one should not be backported as well even if this is semver-patch.

cc @nodejs/platform-windows @richardlau

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joaocgreis
win,msi: install Boxstarter from elevated shell
7371a1f
Boxstarter asks for elevation to install packages, but not to install
Boxstarter itself. Thus, run all the commands from an elevated
PowerShell.

Refs: nodejs#22645
@joaocgreis joaocgreis added windows Issues and PRs related to the Windows platform. install Issues and PRs related to installing Node.js and its installers. tools Issues and PRs related to the tools directory. dont-land-on-v6.x labels Sep 21, 2018
@nodejs-github-bot

nodejs-github-bot commented Sep 21, 2018

Copy link
Copy Markdown
Collaborator

@joaocgreis build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/953/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added install Issues and PRs related to installing Node.js and its installers. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform. labels Sep 21, 2018
@joaocgreis

joaocgreis commented Sep 21, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/17349/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joaocgreis joaocgreis mentioned this pull request Sep 21, 2018
win,msi: install tools for native modules #22645
Closed
2 tasks done
@targos

targos commented Sep 21, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Test build so we can try it: https://ci-release.nodejs.org/job/iojs+release/3775/
Edit: https://nodejs.org/download/test/v11.0.0-test201809217371a1f810/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Sep 21, 2018

Copy link
Copy Markdown
Member

I tested it and it works, nice!
Rubberstamp LGTM on the actual change.

joaocgreis reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Sep 21, 2018

Copy link
Copy Markdown
Member

This does not permamently install Boxstart itself, just the required packages, right?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Sep 21, 2018

Copy link
Copy Markdown
Member

It permanently installs the Boxstarter shell

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Sep 21, 2018

Copy link
Copy Markdown
Member

Is that visible to the user prior to the installation? The MSI dialog window does not seem to say so.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joaocgreis

joaocgreis commented Sep 21, 2018

Copy link
Copy Markdown
Member Author

@tniessen there's a mention of Boxstarter in the shell text before installation. This installs Chocolatey and Boxstarter as system tools (which are a good thing to have I believe). The most visible part is the Boxstarter Shell that appears in the desktop. Do you think that's an issue? I could add a hackish workaround for that, but I'd rather not unless it proves to be a problem. There are links for manual steps for people that want more control over the installation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tniessen added a commit to tniessen/node that referenced this pull request Sep 21, 2018
@tniessen
win,msi: highlight installation of 3rd-party tools
bdf505b
Currently, the installation wizard more or less silently installs
third-party software (Boxstarter + Chocolatey). This adds some text
to the MSI installation dialog and to the Boxstarter installation
script.

Refs: nodejs#22645
Refs: nodejs#22988
@tniessen tniessen mentioned this pull request Sep 21, 2018
win,msi: highlight installation of 3rd-party tools #23003
Closed
1 task done
@tniessen

tniessen commented Sep 21, 2018

Copy link
Copy Markdown
Member

This installs Chocolatey and Boxstarter as system tools (which are a good thing to have I believe)

I agree, but it should be obvious to the user that that is going to happen, and I don't think it currently is. I opened #23003 to deal with that.

This discussion is unrelated to this PR though, the change itself LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tniessen
tniessen approved these changes Sep 21, 2018
View reviewed changes
@addaleax

addaleax commented Sep 24, 2018

Copy link
Copy Markdown
Member

@tniessen @joaocgreis Is this ready for landing? It seems that way but I’m super unfamiliar with the subject matter so I don’t feel comfortable pushing the button just yet. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Sep 24, 2018

Copy link
Copy Markdown
Member

I'd think so, but I cannot actually test the installer right now, would be great if someone else from @nodejs/platform-windows could confirm.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tniessen added a commit that referenced this pull request Sep 24, 2018
@tniessen
win,msi: highlight installation of 3rd-party tools
b78ba93
Currently, the installation wizard more or less silently installs
third-party software (Boxstarter + Chocolatey). This adds some text
to the MSI installation dialog and to the Boxstarter installation
script.

PR-URL: #23003
Refs: #22645
Refs: #22988
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: João Reis <[email protected]>
@joaocgreis

joaocgreis commented Sep 25, 2018

Copy link
Copy Markdown
Member Author

This is ready to land. Both @targos and I tested this, I tested on Windows 7, 2012R2 and 10. It is possible (or even likely) that some program out there or some configuration will make the installation fail, so more testing would always be welcome. (I believe that using Chocolatey/Boxstarter is both the simplest way and the one that will cause less issues, but installing these tools is hard.)

I will land this tomorrow if no one gets to it first or finds any issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jasnell
jasnell approved these changes Sep 25, 2018
View reviewed changes
joaocgreis added a commit that referenced this pull request Sep 26, 2018
@joaocgreis
win,msi: install Boxstarter from elevated shell
0461dd9
Boxstarter asks for elevation to install packages, but not to install
Boxstarter itself. Thus, run all the commands from an elevated
PowerShell.

Refs: #22645
PR-URL: #22988
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@joaocgreis

joaocgreis commented Sep 26, 2018

Copy link
Copy Markdown
Member Author

Landed in 0461dd9

Thanks for your reviews @targos @tniessen @jasnell !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joaocgreis joaocgreis closed this Sep 26, 2018
targos pushed a commit that referenced this pull request Sep 27, 2018
@tniessen @targos
win,msi: highlight installation of 3rd-party tools
2b7e18d
Currently, the installation wizard more or less silently installs
third-party software (Boxstarter + Chocolatey). This adds some text
to the MSI installation dialog and to the Boxstarter installation
script.

PR-URL: #23003
Refs: #22645
Refs: #22988
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: João Reis <[email protected]>
targos pushed a commit that referenced this pull request Sep 27, 2018
@joaocgreis @targos
win,msi: install Boxstarter from elevated shell
cf284c8
Boxstarter asks for elevation to install packages, but not to install
Boxstarter itself. Thus, run all the commands from an elevated
PowerShell.

Refs: #22645
PR-URL: #22988
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@targos targos mentioned this pull request Oct 7, 2018
Release proposal: v10.12.0 #23313
Merged
This was referenced Oct 10, 2018
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#225
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#239
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#226
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#240
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#227
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#241
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#242
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#228
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#243
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#229
Closed
@vsemozhetbyt vsemozhetbyt mentioned this pull request Oct 13, 2018
windows 10, nodejs 10.12.0 boxstarter dependency force reboot nodejs/Release#369
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@tniessen tniessen tniessen approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

install Issues and PRs related to installing Node.js and its installers. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@joaocgreis @nodejs-github-bot @targos @tniessen @addaleax @jasnell
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.