Share via

Winget Install Problem

Anonymous
2024-11-12T07:00:56+00:00

Hi everyone,

In Uniget, I am getting a Microsoft.WinGet.Client update. It won't install in Uniget. On my desktop PC I got it updated in PowerShell with the command "Install-Module -Name Microsoft.WinGet.Client".

On my other machine, it's not that simple. I get the output from the command detailed in the image. Can anyone help? I am totally confused.

Thanks.

Windows for home | Windows 11 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Ramesh Srinivasan 80,725 Reputation points Independent Advisor
    2024-11-12T11:13:04+00:00

    It looks like multiple versions of that module have been installed. Please run:

    Uninstall-Module -Name Microsoft.WinGet.Client -AllVersions

    Then, run:

    Install-Module -Name Microsoft.WinGet.Client

    Press "Y" to confirm.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-11-12T11:06:37+00:00

    What should I do now? This is turning into a nightmare. I answered yes to all and got this, with the intention of disabling later -

    Image

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Ramesh Srinivasan 80,725 Reputation points Independent Advisor
    2024-11-12T09:41:40+00:00

    Hi Brett,

    You can have it enabled, but exercise caution when installing modules from sources on the web because not all modules on that portal are written by Microsoft.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Ramesh Srinivasan 80,725 Reputation points Independent Advisor
    2024-11-12T08:30:27+00:00

    Hi Brett, I'm Ramesh, here to answer your query at the Microsoft Community.

    It's normal to see the " Are you sure you want to install the modules from

    'PSGallery'?" when installing something from the PS gallery. PSGallery is hosted by Microsoft, but not all scripts are authored by Microsoft.

    However, as "Microsoft.WinGet.Client" is authored by Microsoft, you may just type Y and hit enter to install the module.

    Note:

    In the future, to set the PowerShell Gallery back to untrusted, you can use the following command from admin PowerShell:

    Set-PSRepository -Name 'PSGallery' -InstallationPolicy Untrusted

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-11-12T07:02:35+00:00

    This is what I get in Uniget.

    Was this answer helpful?

    0 comments No comments