-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repair-WingetPackageManager -force does not force repair #4981
Comments
Try adding "-Latest" to the command to get the latest stable version of WinGet installed. |
Step 1: Step 2: Step 3: Step 4 |
I think the issue here is that the version of WinGet that is installed is the correct version, and, it has to be "working" because otherwise it wouldn't report its version. So, the cmdlet is actually doing exactly what it is coded to do - make sure the specified version of WinGet is installed and that the executable runs. I think the bigger question here is - why were you calling Edit: There is also a feature request in #4947 to have |
So something I've learned is the winget -v will almost always work if the application is not functioning correctly. One of the most common issues is the sources not working correctly and neither winget source update or reset resolve the issue but since it reports a version, it won't force a reinstall |
Brief description of your issue
Running the command Repair-WingetPackageManager with -force does not force a repair. This prevents updates and repairs from being possible even when the application is not working correctly.
Steps to reproduce
Run the command Repair-WingetPackageManager -force -verbose
Expected behavior
DesktopAppInstaller will reinstall or update
Actual behavior
Currently, even if winget is not in a good state, the command will fail
Environment
The text was updated successfully, but these errors were encountered: