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

Installing PowerShell results in error

Open Luedtkejk opened this issue 10 months ago • 11 comments

Brief description of your issue

2024-04-06 16:16:16.926 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerSharedLib\Public\AppInstallerLanguageUtilities.h(135)\WindowsPackageManager.dll!00007FFBEE892E19: (caller: 00007FFBEE8E8F38) Exception(1) tid(3dbc) 80070490 Element not found.

    Msg:[GetVariant(14)] 

2024-04-06 16:16:16.928 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerSharedLib\Public\AppInstallerLanguageUtilities.h(135)\WindowsPackageManager.dll!00007FFBEE892E19: (caller: 00007FFBEE8E8F38) Exception(1) tid(3dbc) 80070490 Element not found.

    Msg:[GetVariant(14)] 

WinGet-2024-04-06-16-16-16.338.log WinGet-2024-04-06-16-17-55.131.log WinGet-2024-04-06-16-17-43.499.log

Steps to reproduce

winget install Microsoft.PowerShell -s winget

Expected behavior

PowerShell 7 to be installed

Actual behavior

An unexpected error occurred while executing the command:
GetVariant(14)
0x80070490 : Element not found.

Environment

Windows Package Manager (Preview) v1.8.924-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.4170
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.924.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled
PS C:\WINDOWS\system32>

Luedtkejk avatar Apr 06 '24 21:04 Luedtkejk

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:

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

github-actions[bot] avatar Apr 06 '24 21:04 github-actions[bot]

@johnmcpms / @denelon - sideBySide was enabled and causing this error. Disabling sideBySide experimental feature resolved the issue

cc @Trenly

Luedtkejk avatar Apr 06 '24 21:04 Luedtkejk

[Policy] Experimental [Policy] Issue Bug [Policy] Command Install

Trenly avatar Apr 06 '24 21:04 Trenly

Same error seen in #4354

mdanish-kh avatar Apr 07 '24 01:04 mdanish-kh

Same with ETXSoftwareInc.DuckDns and REALiX.HWiNFO

soredake avatar Apr 09 '24 16:04 soredake

Could someone change the title to something like "GetVariant(14) 0x80070490 : Element not found when sideBySide is enabled"? I get this when trying to install LastFM.LastFMDesktopScrobbler and a few other packages as well

aaronliu0130 avatar Apr 29 '24 15:04 aaronliu0130

@aaronliu0130 I updated #4425 as well to be more clear - thanks for the heads up!

@mdanish-kh did you get this error when actually trying to use the sBS functionality? I tried installing apps that had no other versions, no head ever been installed, and was getting this error. I don't have any apps pinned, and just like you when disabling - installed just fine.

davidldennison avatar Apr 30 '24 03:04 davidldennison

@Luedtkejk There have been updates to the client to fix similar issues (https://github.com/microsoft/winget-cli/issues/4354, https://github.com/microsoft/winget-cli/issues/4425) to this one. Can you try installing the v1.9.1551-preview release and check if the issue's resolved for you?

mdanish-kh avatar Jun 14 '24 17:06 mdanish-kh

Can you try installing the v1.9.1551-preview release and check if the issue's resolved for you?

works for me for Perfview. Before I got this error:

C:\>winget install --id Microsoft.PerfView -e --source winget --verbose-logs
Unerwarteter Fehler beim Ausführen des Befehls:
GetVariant(14)
0x80070490 : Element nicht gefunden.

with 1.9 preview it works 🥳

C:\>winget install --id Microsoft.PerfView -e --source winget --verbose-logs
Gefunden PerfView [Microsoft.PerfView] Version 3.1.11
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Download läuft https://github.com/microsoft/perfview/releases/download/v3.1.11/PerfView.exe
  ██████████████████████████████  21.4 MB / 21.4 MB
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
Befehlszeilenalias hinzugefügt: "perfview"
Erfolgreich installiert

MagicAndre1981 avatar Jun 20 '24 05:06 MagicAndre1981

Since updating to the newest download, I have been unable to run winget update—it just keeps on spinning until I exorcize it from my realm.

aaronliu0130 avatar Jun 24 '24 23:06 aaronliu0130

Works after latest preview

aaronliu0130 avatar Jun 26 '24 15:06 aaronliu0130

@Luedtkejk are you still having this problem with the stable 1.8 release of WinGet, or the current 1.9-preview release?

denelon avatar Jul 03 '24 19:07 denelon

Hello @Luedtkejk,

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Template: msftbot/noRecentActivity