microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.25k stars 1.45k forks source link

Microsoft Edge: install technology is different from the current version installed #4159

Open emversch opened 9 months ago

emversch commented 9 months ago

Brief description of your issue

A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.

however I cannot uninstall Microsoft Edge to circumvent this error

Steps to reproduce

update Microsoft.Edge

Expected behavior

update Microsoft Edge to the latest version

Actual behavior

Microsoft Edge cannot update

Environment

Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3007
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0

Microsoft.Edge installed version: 121.0.2277.112
github-actions[bot] commented 9 months ago

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

stephengillie commented 9 months ago

This issue is common when upgrading a package for the first time, if the installer type in the manifest isn't the same as what's installed. The root is that it's a bad idea to install with one technology (such as MSI) and then uninstall through another (such as Inno).

The solution here is to manually uninstall the software, then reinstall using the WinGet package manager. I thought there was an Issue to automate the manual uninstall, but I can't find it now.

emversch commented 9 months ago

I understand that, but windows does not let me uninstall Edge

Callisos commented 7 months ago

I understand that, but windows does not let me uninstall Edge

It did let me uninstall it in my case - after I force-installed the winget source version of Edge side-by-side w/ the previous version: > winget install Microsoft.Edge --force

After that, I could uninstall the older msstore source version of Edge: > winget uninstall Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe

This is what has worked for me. Now winget only lists one Edge version on my system - the newer one from the winget community repo.

My case is lil' bit different though because I was switching my Edge installation from msstore -> winget. Since you report your current Edge version is 121.x which hasn't landed in msstore yet, I guess you have rather a problem w/ updating Edge from one winget source version to another one and not from a msstore source version to a winget one.

But by the same analogy, since essentially force-installing the newer version side-by-side makes the older version uninstallation possible, could you try force-installing the newest version specifying the exact version w/ the -v,--version option instead of updating, and then uninstalling the older version, again specifying the exact version w/ the same option?

Runaway1956 commented 6 months ago

I understand that, but windows does not let me uninstall Edge

It did let me uninstall it in my case - after I force-installed the winget source version of Edge side-by-side w/ the previous version: > winget install Microsoft.Edge --force

After that, I could uninstall the older msstore source version of Edge: > winget uninstall Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe

This is what has worked for me. Now winget only lists one Edge version on my system - the newer one from the winget community repo.

My case is lil' bit different though because I was switching my Edge installation from msstore -> winget. Since you report your current Edge version is 121.x which hasn't landed in msstore yet, I guess you have rather a problem w/ updating Edge from one winget source version to another one and not from a msstore source version to a winget one.

But by the same analogy, since essentially force-installing the newer version side-by-side makes the older version uninstallation possible, could you try force-installing the newest version specifying the exact version w/ the -v,--version option instead of updating, and then uninstalling the older version, again specifying the exact version w/ the same option?

Similar situation here - I was unable to update Edge from an older Winget version to a newer Winget version. I force installed - and the older version just magically disappeared. Winget and Wingetui report that there are no updates to install, I have the latest versions. Thanks for the tip, I'm no longer banging my head on the desk.

hueldoeu commented 5 months ago

i could never upate Microsoft.Edge with winget. i always open edge, click on three dots, help and feedback, info

hueldoeu commented 1 month ago

it's literally impossible to upgrade cmd => winget upgrade Microsoft.Edge