Questions tagged [winget]

Winget is a package manager for Windows made by Microsoft. Do not use this tag for questions about the autohotkey function WinGet().

The sources of winget can be found on GitHub.

Packages can be added to the main repository by creating a pull request to the package repository.

51 questions
2
votes
0 answers

Toast notification for winget upgrade

Could I send a notification of the amount of upgrades available for the winget package manager. Plan somehow get int variable of available amount post to toast. Possibly using https://github.com/Windos/BurntToast New-BurntToastNotification -Text…
MANICX100
  • 1,299
  • 2
  • 12
  • 20
2
votes
2 answers

"winget install vscode" missing packages

I am not able to list the all vscode packages available to install via winget package manager.. Please see the screen shot. This Winget version is the latest version right now. C:\Users\>winget search vscode Name …
Rakesh
  • 21
  • 5
1
vote
1 answer

Which PowerShell versions

Different commands tell me I have different versions of PowerShell. (1) Why? (2) Do I need to care? Following some of the advice here and on other sites I used WinGet to install a later version of PowerShell. Or so I thought. Every time I start…
pwright2
  • 11
  • 2
1
vote
1 answer

How to run winget command and show its progress bar and size of update if it is inside a variable ( PowerShell )

I am working on a PowerShell command that updates all my apps with one click but I ran into a problem I stored the winget command inside a variable $upgradeResult the code was $upgradeResult=winget upgrade -u --id $($_.Id) --silent…
Mujtaba
  • 11
  • 2
1
vote
1 answer

How to see the scope of an already winget installed package?

How can I see the install scope of an already installed package, that has been previously with installed using winget? winget install --scope machine -i -e xxxx
not2qubit
  • 14,531
  • 8
  • 95
  • 135
1
vote
1 answer

How to stop winget from automatically installing postgres on my machine

Am on Windows 11. Once in a while, winget, the Windows Package manager, suddenly begins installing Postgres v14 without my consent as seen in this screenshot. I already have Postgres 12 and do not want an automatic install of v14. How do I prevent…
Peter
  • 648
  • 7
  • 26
1
vote
1 answer

What does -h flag mean in winget?

I was working with WinGet, when I suddenly noticed why we write '-h' in command. What is the use of this flag? I tried searching but couldn't find.
1
vote
1 answer

Updating a software from the MS Store using the msixBundle file with a powershell command

I need to prepare a powershell script, that I can use after installing Windows. The script will install basic programs with Winget. The problem is, that after an installation of Windows, the App Installer isn't updated, so the Winget can't work. In…
Eli123
  • 21
  • 5
1
vote
1 answer

How do i get back the windows package manager back on the settings . Now I am not able to use winget . Im not able to figure what happened

I tried winget source reset --force winget source update --force command but then again the winget upgrade command is showing "Failed in attempting to update the source: winget" "Failed when searching source; results will not be included: winget"
1
vote
2 answers

How to install a particular .NET Framework version SDK using winget?

I tried to install the .NET SDK's for both Framework versions 4.7.2 and 4.8. However, this does not seem possible as there is no way to specify the version, or even get search results with several versions. (Actually the winget package…
not2qubit
  • 14,531
  • 8
  • 95
  • 135
1
vote
3 answers

POWERSHELL : How to get the last characters (can be 3 or 10) of Powershell output (WINGET App Version)

I've been grabbing my hair on this one (not much left). I'm trying get the last characters on a powershell output. Here's my basic code as example $VLCVersion = winget search --exact VideoLAN.VLC --source winget Foreach($line in $VLCVersion){…
1
vote
2 answers

PowerShell - WinGet - Compare Available Package Version to Currently installed

Currently working with WinGet to improve application deployment lifecycle within Intune. I am looking at deploying a detection script that checks for the installed version daily, then triggers the remediation if there is an available update. Doing…
Batteredburrito
  • 579
  • 1
  • 5
  • 34
1
vote
1 answer

Windows Ansible role is hanging/freezing because of dialog

I'm probably trying to do something stupid, but I have been writing roles to install applications via WinGet (Windows package manager) and via ansible.windows.win_command. I am on WSL2 (Ubuntu) connecting to Windows 10 on the same computer. This is…
Viktor
  • 487
  • 2
  • 8
  • 26
1
vote
2 answers

Uninstall all apps without those installed by me the user with get-appxpackage

I want to uninstall all of the apps preinstalled on windows without uninstalling those apps that I installed. I know that I can specify the apps by name, but I want to run this script without manually update it when I install an app. My script looks…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
1
vote
2 answers

Powershell - Condition to verify correct version of an AppX is installed

I'm trying to create a Powershell script in which it will automate the installation of applications and printers needed for work. Most of the script works great, the only thing that doesn't is a Condition that I've placed to skip a step. The script…
NickLab
  • 21
  • 4