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

[Package Issue]: Nushell.Nushell uses machine-scope installation by default instead of user-scope installation #169379

Closed
2 tasks done
pewill opened this issue Aug 26, 2024 · 1 comment · Fixed by #169381
Closed
2 tasks done
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.

Comments

@pewill
Copy link
Contributor

pewill commented Aug 26, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

When installing Nushell.Nushell via winget it uses machine-scope installation by default instead of user-scope installation.
As a consequence winget installation winget install --id Nushell.Nushell fails in a non-eleveted terminal which is not desired (see nushell/nushell#13281 for details)
The culprit is the ALLUSERS=1 installer switch that was introduced as a manual change in the manifest for version 0.94.2 and is now carried over to subsequent releases.

Steps to reproduce

  1. Start a non elevated terminal
  2. run winget install --id Nushell.Nushell --version 0.97.1

Actual behavior

The installation fails with error Installer failed with exit code: 1603 and in the installation logs the following message is written You do not have sufficient privileges to complete this installation for all users of the machine

Expected behavior

The installation succeeds and Nushell gets installed with user scope

Environment

Windows Package Manager v1.8.1911
Windows: Windows.Desktop v10.0.22631.4037
Microsoft.DesktopAppInstaller v1.23.1911.0

Screenshots and Logs

No response

@pewill pewill added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Aug 26, 2024
@pewill pewill changed the title [Package Issue]: Nushell.Nushell MSI use machine-scope installation by default instead of user-scope installation [Package Issue]: Nushell.Nushell use machine-scope installation by default instead of user-scope installation Aug 26, 2024
@pewill pewill changed the title [Package Issue]: Nushell.Nushell use machine-scope installation by default instead of user-scope installation [Package Issue]: Nushell.Nushell uses machine-scope installation by default instead of user-scope installation Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@pewill and others