Skip to content

Installing via winget requests admin credentials #11987

Closed as not planned
Closed as not planned

Description

@devmcp

Bug description

Installing with winget, i.e.

winget install --id=Posit.Quarto  -e

asks for admin credentials (which I don't have as it's a work machine), yet I am able to install without issue using the .msi installer from the Get Started page.

Is this expected? Is there a way to install with winget using the same options as the .msi installer so that it doesn't require admin access?

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

NA

Activity

  1. added
    bug
    on Jan 29, 2025
  2. mcanouil commented on Jan 29, 2025

    @mcanouil
    Collaborator

    @devmcp Please use discussions in the future to ask questions as highlighted in the issue template you used.

  3. added
    triaged-to
    on Jan 29, 2025
  4. cderv commented on Jan 30, 2025

    @cderv
    Member

    @devmcp we don't own the manifest for windows. We do provide the bundle msi installer

    yet I am able to install without issue using the .msi installer from the Get Started page.

    This means that on our side everything is ok. The MSI can be used to install in user mode.

    installing with winget (...) asks for admin

    This means that somehow the manifest is not correctly written. The manifest is here
    https://github.com/microsoft/winget-pkgs/tree/master/manifests/p/Posit/Quarto/1.6.40
    and it is automatically updated by some service managed by community
    See latest PR for Quarto 1.6.40 release there

    It seems Scope: machine is what they wrote
    https://github.com/SpecterShell/winget-pkgs/blob/99d2803b79bc7d3ef6dfe6cb8ad9bfe087fc7e67/manifests/p/Posit/Quarto/1.6.40/Posit.Quarto.installer.yaml#L7

    So possibly an issue to open in the repo there or a PR to update the manifest.

    As a side note, if you are on a computer without admin right, scoop is a good package manager for this, and Quarto is available there too.

    Hope it helps

  5. added
    support
    and removed
    bug
    triaged-to
    on Jan 30, 2025
  6. added this to the v1.7 milestone on Jan 30, 2025
  7. cderv commented on Jan 30, 2025

    @cderv
    Member

    Is there a way to install with winget using the same options as the .msi installer so that it doesn't require admin access?

    Though I see a --scope argument in winget install so you could try

    winget install --id=Posit.Quarto  -e --scope user
    

    this may work

    You could also ask for interactive installation

    winget install --id=Posit.Quarto  -e --interactive
    

    and see if that helps select right scope

  8. added
    third-party
    and removed on Jan 30, 2025
  9. devmcp commented on Jan 30, 2025

    @devmcp
    Author

    Apologies for raising in the wrong area @mcanouil.

    That is extremely helpful @cderv, thank you. I'll raise the issue on that project.

    Adding --scope user doesn't work and gives No applicable installer found; see logs for more details.
    Adding --interactive does bring up the interactive dialogue so is a suitable workaround in the meantime.

    I am aware of (and like) scoop, but since we use winget to install some other dependencies we wanted to stick to a single package manager for everything.

    Thanks again!

  10. cderv commented on Jan 30, 2025

    @cderv
    Member

    Adding --scope user doesn't work and gives No applicable installer found; see logs for more details.

    Thanks for trying. So this is definitely related to the manifest repo not having a version support user scope. You should report and / or PR there.

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

Metadata

Metadata

Assignees

Labels

supportthird-partywindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions