winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Cant install update because of different install technology

Open Gavin-Williams opened this issue 1 year ago • 1 comments

Brief description of your issue

I can't install Powershell update.

Steps to reproduce

winget install --id Microsoft.Powershell --source winget

Found an existing package already installed. Trying to upgrade the installed package... 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.

Expected behavior

I expect it to work.

Actual behavior

It doesn't work.

Environment

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

Windows: Windows.Desktop v10.0.22631.3085
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.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
Installer Downloads                %USERPROFILE%\Downloads

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

Gavin-Williams avatar Feb 04 '24 18:02 Gavin-Williams

See https://github.com/microsoft/winget-cli/issues/4140#issuecomment-1926683631

[Policy] Side-by-Side

  • Related to https://github.com/microsoft/winget-cli/issues/2129

mdanish-kh avatar Feb 05 '24 10:02 mdanish-kh

If you wish to have both versions installed you can use the "--force" option to install the other version as a "side-by-side" installation.

denelon avatar Jul 03 '24 21:07 denelon