Comments (4)
I usually update the App Installer through the Microsoft Store. I'm not sure, but that might be the quickest way to get WinGet going on new installs. It's part of the update process for my VMs, installing all updates from the Microsoft Store, Windows Update, and Defender.
from winget-cli.
The process you outlined is exactly what we're aiming for. There are still some gaps with how exactly this functions in the system context vs. a logged in user context. There are also gaps on ARM64.
from winget-cli.
Gotcha @denelon, and just to be more specific in my case I wish to bootstrap/repair WinGet machine-wide from a full local administrator context, not necessarily from SYSTEM context.
Also, should I add the AllUsers
scope flag to the cmdlets just to be more precise in their intent? Finally, is the -Force
and -Latest
flag recommended in this situation with Repair-WinGetPackageManager
? For example.
#Requires -RunAsAdministrator
# Install NuGet package provider to install Microsoft.WinGet.Client module
Install-PackageProvider -Name NuGet -Scope AllUsers -Force
# Install Microsoft.WinGet.Client module
Install-Module -Name Microsoft.WinGet.Client -Repository PSGallery -Scope AllUsers -Force
# Repair WinGet package manager
Repair-WinGetPackageManager -AllUsers -Latest -Force
from winget-cli.
WinGet being delivered via the App Installer MSIX means "AllUsers" doesn't exactly behave the way it would for an MSI. It should have any negative impact but might not necessarily be required.
The "Latest" argument essentially means grab the newest stable version rather than to just "repair" the current version.
I honestly don't remember why "Force" is required (it's probably an edge case we might hit), so that will likely also stay.
For completeness, there is an "Allow Prerelease" for users who want a preview build rather than stable, but for broad deployment use cases, I wouldn't recommend that one without the user fully understanding the implications of installing a prerelease version of WinGet on a large number of devices.
from winget-cli.
Related Issues (20)
- WinGet fails in the "silent install check" of the Microsoft Store HOT 8
- 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 8
- 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 26
- I steel can't to download discordptb HOT 3
- Unable to Uninstall Duplicate Packages HOT 3
- 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 4
- WinGet installation of 7Zip: 0x80070005 : unknown error HOT 4
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.