Skip to content
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

sideBySide Experimental Feature Causing GetVariant(14) 0x80070490 Error - Winget v1.8.1133-preview #4425

Closed
davidldennison opened this issue Apr 29, 2024 · 2 comments · Fixed by #4432
Labels
Command-Install Issue related to WinGet Install Experimental This experimental feature can be enabled in settings Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@davidldennison
Copy link

Brief description of your issue

The sideBySide Experimental Features causes variant issue when trying to install an application Winget as the source and setting "sideBySide: true" under experimental features.

I also submitted to the Feedback Hub with all of my Winget logs and diagnostic data recorded. Find it here:

https://aka.ms/AAq7fke

The video attached is a side-by-side recording of my Terminal and Winget "settings.json" so you can see exactly how sideBySide was enabled, install failed, sideBySide disabled, install succeeds.

Winget-CLI-Side-by-side.mp4

Steps to reproduce

Steps:

  1. Enable sideBySide
  2. winget install Google.Chrome.Beta -s winget
  3. Unexpected Error - GetVariant(14) 0x80070490 : Element not found.
  4. Disable sideBySide
  5. Open new shell
  6. winget install Google.Chrome.Beta -s winget
  7. Google Chrome Beta installs as expected

Also tried with winget install Google.Chrome.Dev -s winget

Expected behavior

C:>winget install Google.Chrome.Beta -s winget
Found Google Chrome Beta [Google.Chrome.Beta] Version 125.0.6422.14
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.google.com/dl/chrome/install/beta/googlechromebetastandaloneenterprise64.msi
██████████████████████████████ 116 MB / 116 MB
Successfully verified installer hash
Starting package install...
Successfully installed

C:>

Actual behavior

C:>winget install Google.Chrome.Beta -s winget
An unexpected error occurred while executing the command:
GetVariant(14)
0x80070490 : Element not found.

C:>

Environment

My current Winget settings.json:
{
    "$schema": "https://aka.ms/winget-settings.schema.json",
    "experimentalFeatures": {
        "experimentalCmd": true,
        "experimentalArg": true,
	    "dependencies": true,
	    "directMSI": true,
        "resume": true,
        "configuration03": true,
        "configureSelfElevate": true,
        "sideBySide": false
    },
    "visual": {
        "progressBar": "rainbow",
        "anonymizeDisplayedPaths": false
    },
    "source": {
        "autoUpdateIntervalInMinutes": 60
    },
    "installBehavior": {
        "disableInstallNotes": false,
        "skipDependencies": false,
        "includePreviewVersions": true,
        "portablePackageUserRoot": "C:\\Portable-Apps",
        "portablePackageMachineRoot": "C:\\Portable-Apps",
        "allowPrerelease": true,
        "allowExperimental": true,
        "preferences": {
            "locale": ["en-US"],
            "architectures": ["x64"],
            "installerTypes": ["msix", "msi", "exe", "msstore", "wix", "nullsoft", "zip", "inno", "burn",  "portable"]
        }
    },
    "uninstallBehavior": {
        "purgePortablePackage": true
    },
    "network": {
       "downloader": "wininet"
    },
    "telemetry": {
        "disable": false    
    },
    "logging": {
        "level": "verbose",
        "channels": ["all"]
    },
    "interactivity": {
        "disable": false
    }
}

Winget --info --verbose:
Windows Package Manager (Preview) v1.8.1133-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.5001
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1133.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------------------------
Logs                               C:\Users\david\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutp…
User Settings                      C:\Users\david\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings…
Portable Links Directory (User)    C:\Users\david\AppData\Local\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       C:\Portable-Apps
Portable Package Root              C:\Portable-Apps
Portable Package Root (x86)        C:\Portable-Apps
Installer Downloads                C:\Users\david\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

C:\>
@microsoft-github-policy-service microsoft-github-policy-service bot added Command-Install Issue related to WinGet Install Experimental This experimental feature can be enabled in settings and removed Needs-Triage Issue need to be triaged labels Apr 30, 2024
@davidldennison davidldennison changed the title sideBySide Experimental Feature Causing GetVariant Error - Winget v1.8.1133-preview sideBySide Experimental Feature Causing GetVariant(14) 0x80070490 Error - Winget v1.8.1133-preview Apr 30, 2024
@denelon
Copy link
Contributor

denelon commented Apr 30, 2024

Thanks for reporting this with logs!

We were just discussing this bug and trying to get a reliable reproduction.

@denelon denelon added this to the 1.8 Client milestone Apr 30, 2024
@denelon denelon added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 30, 2024
JohnMcPMS added a commit that referenced this issue May 1, 2024
Fixes #4425 

## Change
This adds a `Workflow` channel (disabled by default) that has the entry
to tasks and the `Get`/`Add`/`Contains` calls logged to it. This enables
a view into a flow that can be collected by a third party.

It also fixes a behavior change with the side-by-side code path for
selecting the installed version that would lead to no data item being
inserted, when the previous behavior was that a `nullptr` would be
inserted when no version is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Install Issue related to WinGet Install Experimental This experimental feature can be enabled in settings Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants