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 Installation doesn't respect the selected scope #200894

Open
2 tasks done
youk opened this issue Dec 21, 2024 · 2 comments · May be fixed by #200911
Open
2 tasks done

[Package Issue]: Nushell.Nushell Installation doesn't respect the selected scope #200894

youk opened this issue Dec 21, 2024 · 2 comments · May be fixed by #200911
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@youk
Copy link

youk commented Dec 21, 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

Both user and machine scopes behave in misleading way during installation. Package is either not installed or installed to the wrong location.

Steps to reproduce

  • winget install -e --id Nushell.Nushell --scope user
    
    See the error message.

  • winget install -e --id Nushell.Nushell --scope machine
    
    Check the actual install location.

Actual behavior

  • Installing to user scope:

    winget install -e --id Nushell.Nushell --scope user
    
    No applicable installer found; see logs for more details.
    
  • Installing to machine scope as a regular user:

    winget install -e --id Nushell.Nushell --scope machine
    
    Failed to open the predefined source; please report to winget maintainers.
    An unexpected error occurred while executing the command:
    0x80070005 : Access is denied.
    
  • Installing to machine scope as administrator:

    winget install -e --id Nushell.Nushell --scope machine
    

    Package is installed per user (%LOCALAPPDATA%\Programs\nu)

Expected behavior

  1. Package installation respects the --scope flag.
  2. Package is not installed to unexpected locations.

Environment

Windows Package Manager (Preview) v1.10.40-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.5247
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.40.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

No response

@youk youk added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Dec 21, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@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 Dec 21, 2024
@Dragon1573
Copy link
Contributor

Actual behavior

  • Installing to user scope:

    winget install -e --id Nushell.Nushell --scope user
    
    No applicable installer found; see logs for more details.
    

There's Scope: machine pre-defined in the manifest. So it IS expected adding --scope user find nothing available.

@Dragon1573 Dragon1573 linked a pull request Dec 21, 2024 that will close this issue
7 tasks
@microsoft-github-policy-service microsoft-github-policy-service bot added In-PR and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Dec 21, 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants