Skip to content

Winget not asking for privilege escalation for some packages #1538

Closed

Description

@FurtadoPires

Brief description of your issue

Some applications like Libreoffice can't be installed with windows terminal in user mod, because the terminal doesn't ask to escalate privilege during the install process (crashing with the code 1603)

If it's executed using Powershell as admin, the install process silently finishes in the background but the terminal window remains stuck with the initiating install message.

Steps to reproduce

winget upgrade LibreOffice.LibreOffice

Environment

[winget --info]
Windows: Windows.Desktop v10.0.19043.1237
Pacote: Microsoft.DesktopAppInstaller v1.16.12653.0

Registros: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
-------------------------------------------------------------------------------
Política de Privacidade https://aka.ms/winget-privacy
Contrato de Licença     https://aka.ms/winget-license
Avisos de Terceiros     https://aka.ms/winget-3rdPartyNotice
Home page               https://aka.ms/winget
Termos da Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale
Windows Package Manager version
Windows: Windows.Desktop version
Package: Microsoft.DesktopAppInstaller version


Activity

  1. ghost added
    Needs-Triage
    on Oct 1, 2021
  2. denelon commented on Oct 1, 2021

    @denelon
    Collaborator

    We have a couple of issues related to this ask.

    These are prerequisites intended to address this scenario. We still have some work to do in the client for this, but the schema work has been implemented, and the support for the v1.1 manifest schema is in progress on the validation pipelines. I'll use this ask to represent the work on the client side.

  3. added
    Issue-Bug
    Issue-Feature
    and removed
    Issue-Bug
    Needs-Triage
    on Oct 1, 2021
  4. added this to the milestone on Oct 1, 2021
  5. modified the milestones: , v1.3-Client on Dec 1, 2021
  6. denelon commented on Dec 1, 2021

    @denelon
    Collaborator

    We've added the key to the schema to indicate when a package requires or prohibits elevation. This work item will be used to track the work to provide the information to the user. It will give an error for user mode if the package requires elevation, and it will give an error for admin mode if the package prohibits elevation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions