Skip to content
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

Support user scoped installs on Windows #47601

Closed
byjrack opened this issue Apr 17, 2023 · 5 comments
Closed

Support user scoped installs on Windows #47601

byjrack opened this issue Apr 17, 2023 · 5 comments
Labels
feature request Issues that request new features to be added to Node.js. install Issues and PRs related to the installers. windows Issues and PRs related to the Windows platform.

Comments

@byjrack
Copy link

byjrack commented Apr 17, 2023

What is the problem this feature will solve?

Currently nodejs and nvm-for-windows both require admin rights to install. This can be a barrier for some of our associates as they need assistance to install or for the version in our self-service installer to match their needs.

What is the feature you are proposing to solve the problem?

Using the ZIP file I didn't have any apparent issues unzipping to %APPDATA%\nodejs and manually adding to PATH so it seems like the installer could do a "per User" as well. Just needs an additional dialog in the Install script that triggers if it is installed to somewhere under AppData\Local or Program Files.

And if yes can you update the winget manifest to have a scope=user option so we can enable our non-admin users to install using winget?

What alternatives have you considered?

For us the workaround is packaging and installing as SYSTEM. Or have associates follow the steps around unzip and their User PATH updates.

We have considered wrapping the zip in some orchestration (VBS, Posh, etc) to make it click and go as well, but as a User.

@byjrack byjrack added the feature request Issues that request new features to be added to Node.js. label Apr 17, 2023
@VoltrexKeyva VoltrexKeyva added windows Issues and PRs related to the Windows platform. install Issues and PRs related to the installers. labels Apr 17, 2023
@mscdex
Copy link
Contributor

mscdex commented Apr 17, 2023

Feel free to submit a PR, but based on past feature requests for this same thing, it seems it's not going to be very easy (or maybe even possible) for various reasons.

@byjrack
Copy link
Author

byjrack commented Apr 17, 2023

Any links to previous requests or work on the same theme? Tried to search previous issues and nothing jumped out.

Or if there are known issues with running node as a user vs system context that will be helpful to.

Let me track down the existing install script and toy with things with an eye toward PR.

@mscdex
Copy link
Contributor

mscdex commented Apr 18, 2023

Here's one. Others can probably be found by searching for issues/PRs containing both the "windows" and "install" labels.

@byjrack
Copy link
Author

byjrack commented Apr 18, 2023

Will take a look at the installer. The testing may be a bar too high though as ZIP based works fine as noted in that Issue. Or if installing the counters is critical path that's may be an admin only thing. Will dig in and see if I can figure out what it would take.

@byjrack
Copy link
Author

byjrack commented Apr 18, 2023

Yup confirmed that a blocker is the ETW support from my first swing through. Registering the manifest is limited to Admin users. Can't find any indications that there is a way to register the ETW support scoped only to a user.

May start a Discussion to get folks' opinions on if Node w/o ETW support is valuable enough to justify an install path where that is left off. Hesitant on creating inconsistency like that though so closing this Issue out for now.

@byjrack byjrack closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. install Issues and PRs related to the installers. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

3 participants