Comments (17)
OK. I believe I've got a clean repro.
from winget-cli.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Repair-WinGetPackageManager failing due to dependencies (#4228), similarity score: 0.88
- Repair-WingetPackageManager deployment operations not marked as complete (#4116), similarity score: 0.79
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from winget-cli.
I can reproduce this on several machines that are currently on 1.5 or 1.6 and not updating to 1.7
from winget-cli.
I've also verified the same behaviour on a machine with a very old DesktopAppInstaller that didn't even include winget and it reports that winget is healthy when it's not even present.
from winget-cli.
Which version of the Microsoft.WinGet.Client module is being used, and is there any chance older versions of that module are in the module path?
from winget-cli.
$env:PSModulePath -split ';'
C:\Users\Administrator\Documents\WindowsPowerShell\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\Windows\system32\WindowsPowerShell\v1.0\Modules
from winget-cli.
Hi @denelon ,
Every time I run it on a new machine I am using this to pull the latest:
Install-PackageProvider NuGet -Force
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module Microsoft.Winget.Client -Confirm:$False -Force -AllowClobber
Import-Module -Name Microsoft.Winget.Client
Repair-WingetPackageManager -Force -Latest -Verbose
from winget-cli.
If you run Get-Command -Module Microsoft.WinGet.Client
what version of the module is reported?
from winget-cli.
PS C:\WINDOWS\system32> Get-Command -Module Microsoft.WinGet.Client
CommandType Name Version Source
Cmdlet Add-WinGetSource 1.7.10661 Microsoft.Winget.Client
Cmdlet Assert-WinGetPackageManager 1.7.10661 Microsoft.Winget.Client
Cmdlet Disable-WinGetSetting 1.7.10661 Microsoft.Winget.Client
Cmdlet Enable-WinGetSetting 1.7.10661 Microsoft.Winget.Client
Cmdlet Export-WinGetPackage 1.7.10661 Microsoft.Winget.Client
Cmdlet Find-WinGetPackage 1.7.10661 Microsoft.Winget.Client
Cmdlet Get-WinGetPackage 1.7.10661 Microsoft.Winget.Client
Cmdlet Get-WinGetSettings 1.7.10661 Microsoft.Winget.Client
Cmdlet Get-WinGetSource 1.7.10661 Microsoft.Winget.Client
Cmdlet Get-WinGetUserSettings 1.7.10661 Microsoft.Winget.Client
Cmdlet Get-WinGetVersion 1.7.10661 Microsoft.Winget.Client
Cmdlet Install-WinGetPackage 1.7.10661 Microsoft.Winget.Client
Cmdlet Remove-WinGetSource 1.7.10661 Microsoft.Winget.Client
Cmdlet Repair-WinGetPackageManager 1.7.10661 Microsoft.Winget.Client
Cmdlet Reset-WinGetSource 1.7.10661 Microsoft.Winget.Client
Cmdlet Set-WinGetUserSettings 1.7.10661 Microsoft.Winget.Client
Cmdlet Test-WinGetUserSettings 1.7.10661 Microsoft.Winget.Client
Cmdlet Uninstall-WinGetPackage 1.7.10661 Microsoft.Winget.Client
Cmdlet Update-WinGetPackage 1.7.10661 Microsoft.Winget.Client
from winget-cli.
PS C:\Users\nephraim> winget --info
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.4046
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0
Winget Directories
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
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
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
from winget-cli.
PS C:\WINDOWS\system32> Repair-WingetPackageManager -Force -Latest -Verbose
VERBOSE: Creating MTA thread
VERBOSE: WinGet is in a good state.
PS C:\WINDOWS\system32>
from winget-cli.
$env:PSModulePath -split ';'
C:\Users\Administrator\Documents\WindowsPowerShell\Modules C:\Program Files\WindowsPowerShell\Modules C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PS C:\WINDOWS\system32> $env:PSModulePath -split ';'
C:\WINDOWS\system32\config\systemprofile\Documents\WindowsPowerShell\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
C:\Program Files (x86)\Sharegate
C:\Program Files\MicrosoftManagedDesktop\Powershell
C:\Program Files\Citrix\Telemetry Service
PS C:\WINDOWS\system32>
from winget-cli.
I'm building a set of WinGet Configurations and PowerShell scripts to demonstrate the various approaches to bootstrapping WinGet and running WinGet in the system context. There are several scenarios that do not work and a few that do. This is due to the differences between packaged and unpackaged applications as well as the differences between WinGet CLI and the PowerShell modules. Differences between Windows PowerShell and PowerShell 7 also affect the outcome.
The Repair-WinGetPackageManager was designed to bootstrap the WinGet CLI for a logged-on user (not necessarily the system context).
These will all be made available, and they will need a SKU of Windows with the Windows Sandbox enabled.
from winget-cli.
My use case is installing / repairing Winget via an Intune script. Currently there isn't a good way to ensure the Desktop App Installer is getting updated properly so I have a wide range of Winget versions in my environment and the main issue I have encountered is the --installer-type option not being supported in old versions, so I am seeing a lot of deployment failures purely because of the Winget version spread on my devices.
I have tried a couple of ways to invoke a store apps update but that is also inconsistent.
from winget-cli.
The following PowerShell command will "stage" the App Installer when run in the system context (assuming the MSIX packages are available on the system).
This also assumes WinGet 1.7 is the desired version with the dependencies on VCLibs and UI.Xaml.
Add-AppxProvisionedPackage -Online -PackagePath "C:\Sandbox\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -SkipLicense -DependencyPackagePath ("C:\Sandbox\Microsoft.VCLibs.x64.14.00.Desktop.appx", "C:\Sandbox\Microsoft.UI.Xaml.2.8.x64.appx")
I've been working on a Windows Sandbox configuration to use as an example to show this working under nt authority/system, but in Windows Sandbox the WDAGUtilityAccount is also logged in so the package is actually "registered" for the currently logged in user.
from winget-cli.
I've been testing this out too and getting the same result regardless of SYSTEM or USER:
Winget Version installed is 1.2.10691
from winget-cli.
@PckgrTom if you add "-Force -Latest" it should upgrade to the latest stable version. Without those arguments/parameters, the cmdlet is just making sure the current version installed is in a good state. Can you do this and add the "Get-WinGetVersion" output to the statements afterwards?
Which version of the Microsoft.WinGet.Client PowerShell module is present on these systems?
from winget-cli.
Related Issues (20)
- WinGet fails in the "silent install check" of the Microsoft Store HOT 7
- Move SourceType to an Enum
- SOCKS proxy support HOT 1
- winget cannot upgrade Teams Machine wide Installer HOT 5
- winget giving me the 404 error HOT 5
- Winget identifies wrong version for Microsoft.DotNet.DesktopRuntime.6 HOT 4
- Error 0x80190194 When Updating Applications HOT 3
- Microsoft Store - allow downloading old versions HOT 3
- WebView2 dependency in MSIX fails to install on Azure Windows 11 22H2 Pro Gen2 HOT 23
- I steel can't to download discordptb HOT 2
- Unable to Uninstall Duplicate Packages HOT 2
- DisplayLink.Graphics update sets off Antivirus HOT 2
- Multiple packages with same name, id and source HOT 2
- Support input file containing list of software for 'download' feature HOT 1
- WinGet configure should look for a default config file if none is provided HOT 1
- Winget Configuration Export should support more than one ID HOT 1
- Winget Configuration Export should support over write HOT 1
- The `Get-WinGetPackage` and `Get-WinGetPackageUpdate` cmdlets do not report anymore the package name HOT 3
- Gibberish and inconsistencies in package IDs HOT 2
- WinGet installation of 7Zip: 0x80070005 : unknown error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winget-cli.