Skip to content

Installing PowerShell results in error #4357

Closed

Description

@Luedtkejk

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>

Activity

  1. github-actions commented on Apr 6, 2024

    @github-actions

    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.

  2. Luedtkejk commented on Apr 6, 2024

    @Luedtkejk
    Author

    JohnMcPMS / Demitrius Nelon (@denelon) - sideBySide was enabled and causing this error. Disabling sideBySide experimental feature resolved the issue

    cc Kaleb Luedtke (@Trenly)

  3. Trenly commented on Apr 6, 2024

    @Trenly
    Contributor

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

  4. added
    Command-Install
    Experimental
    Issue-Bug
    and removed
    Needs-Triage
    on Apr 6, 2024
  5. mdanish-kh commented on Apr 7, 2024

    @mdanish-kh
    Contributor

    Same error seen in #4354

  6. soredake commented on Apr 9, 2024

    @soredake

    Same with ETXSoftwareInc.DuckDns and REALiX.HWiNFO

  7. aaronliu0130 commented on Apr 29, 2024

    @aaronliu0130

    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

  8. davidldennison commented on Apr 30, 2024

    @davidldennison

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

    Muhammad Danish (@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.

  9. mdanish-kh commented on Jun 14, 2024

    @mdanish-kh
    Contributor

    Luedtkejk There have been updates to the client to fix similar issues (#4354, #4425) to this one. Can you try installing the v1.9.1551-preview release and check if the issue's resolved for you?

  10. added
    Needs-Author-Feedback
    on Jun 14, 2024
  11. MagicAndre1981 commented on Jun 20, 2024

    @MagicAndre1981

    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
    
  12. aaronliu0130 commented on Jun 24, 2024

    @aaronliu0130

    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.

  13. aaronliu0130 commented on Jun 26, 2024

    @aaronliu0130

    Works after latest preview

  14. denelon commented on Jul 3, 2024

    @denelon
    Collaborator

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

  15. microsoft-github-policy-service commented on Jul 11, 2024

    @microsoft-github-policy-service
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-InstallExperimentalIssue-BugNeeds-Author-FeedbackNo-Recent-Activity

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions