-
Notifications
You must be signed in to change notification settings - Fork 134
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
MethodInvocationException when running winget-upgrade.ps1 with PowerShell 7.2.1 #6
Comments
what is the current state of available updates by running this in cmd please: |
After running |
In fact, Winget cannot detect the current version of certain apps (More info here) This is the case for these 2 apps. What you can try, is to install an old 7-zip for example, and restart Winget-AutoUpdate to see if it works well when a "correct" apps has to be updated. |
Thanks for the clarification! I already knew that, but when I run winget upgrade, it upgrades these apps regardless. But I think the way your script does it is the right behavior, if the errors are handled properly. |
I tried to reinstall it and now it tries to upgrade but fails: edit: The log is not very helpful
|
What do you have if you run the script from powershell ? |
|
I'll try to install an "unknown" version app to see how it behaves on my machine. |
I uninstalled both packages with unknown version with only 7zip left and I still get the same error. |
I have installed iZotope.ProductPortal and an old 7zip and it worked for me and properly skipped "unknown" app :
|
Oh, I think the problem with 7zip was that I had the newest version AND V19 installed and it thought the newest update was already installed so it didn't upgrade. oops |
Works fine now, uninstsalled all versions of 7zip. Installed an old version, restarted and the notification showed up and succesfully upgraded 7zip! Thank you for your effort! |
Working on an update to better handle "unknown" apps ;) |
…gmail-com-patch-2 Update Test-ModsPath.ps1
I installed the current version (1.4.1) and ran
winget-upgrade.ps1
from the WingetAutoUpdate directory with PowerShell 7.2.1 and it didn't work. I did this because after installation, there was no sign of it running.Don't know what all of this means, but I don't think that's supposed to happen:
Running it with "normal" PowerShell:
The text was updated successfully, but these errors were encountered: