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

winget tries to install 32bit package on 64bit systems

Open jtnord opened this issue 8 months ago • 4 comments

Brief description of your issue

Winget downloads/uses an incorrect platform for installers

Steps to reproduce

at some point in history install tailscale.tailscale on a 64bit amd system (likely need to somehow use an older tag/branch/commit in winget-pkgs)

try to upgrade an existing installation of tailscale

> winget upgrade tailscale.tailscale

Expected behavior

the upgrade happens

Actual behavior

Found Tailscale [Tailscale.Tailscale] Version 1.82.5
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://pkgs.tailscale.com/stable/tailscale-setup-1.82.5-x86.msi
  ██████████████████████████████  31.4 MB / 31.4 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 1603
Installer log is available at: C:\Users\jnord\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Tailscale.Tailscale.1.82.5-2025-05-20-12-47-13.391.log

the error from the logs is

MSI (s) (AC:88) [12:50:39:657]: Product: Tailscale -- Please download the MSI package that is appropriate for your computer's CPU architecture.

Please download the MSI package that is appropriate for your computer's CPU architecture.
Action ended 12:50:39: LaunchConditions. Return value 3.
Action ended 12:50:39: INSTALL. Return value 3.

as you can see the winget download the 32bit installer and is attempting to use is the x86 version not the amd64 version https://github.com/microsoft/winget-pkgs/blob/ffe1e6484ba81e7b6ad830b4d64f6d6d679c2b40/manifests/t/Tailscale/Tailscale/1.82.5/Tailscale.Tailscale.installer.yaml#L54-L63

Environment

>winget --info
Windows Package Manager v1.10.390
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26100.4061
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.390.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
Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

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

jtnord avatar May 20 '25 12:05 jtnord

Can you run again with --verbose-logs and share the logfile?

I wonder if you had a 32-bit version installed previously, and the installer changed. I see multiple architectures in the latest version.

You may need to uninstall and then perform a clean install to get the proper architecture.

winget show <package> should show the installer URL that would be selected based on the state of the device.

denelon avatar May 22 '25 02:05 denelon

You may need to uninstall and then perform a clean install to get the proper architecture.

While this workaround may resolve the issue, users should not be expected to perform this workaround.

Rather, if users are expected to perform such workarounds, they may as well forego the use of Winget and instead just manually uninstall the program, then visit the software developer's website to download the installer.

kirashi3 avatar Oct 13 '25 00:10 kirashi3

@denelon Hit the same issue today on the latest software. I haven't tried the workaround (uninstall and then perform a clean install).

PS > winget --info

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

Windows: Windows.Desktop v10.0.26100.6584 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.27.350.0

PS > winget show tailscale.Tailscale

PS D:\dev> winget show tailscale.Tailscale Found Tailscale [Tailscale.Tailscale] Version: 1.90.4 Publisher: Tailscale Inc. Publisher Url: https://tailscale.com/ Publisher Support Url: https://github.com/tailscale/tailscale/issues Author: Tailscale Inc. Moniker: tailscale Description: Tailscale is a WireGuard based mesh VPN, used to connect your computers and other devices together securely without proxies. Homepage: https://tailscale.com/download License: BSD-3-Clause License Url: https://github.com/tailscale/tailscale/blob/HEAD/LICENSE Privacy Url: https://tailscale.com/privacy-policy Copyright: Copyright (c) 2025 Tailscale Inc & AUTHORS. Copyright Url: https://tailscale.com/terms Release Notes: All platforms

  • Fixed: A deadlock issue no longer occurs in the client when checking for the network to be available. Linux
  • Fixed: tailscaled no longer sporadically panics when a Trusted Platform Module (TPM) device is present. Windows
  • Fixed: tailscaled no longer sporadically panics when a Trusted Platform Module (TPM) device is present. WASM
  • Fixed: The JS/WASM client used by tsconnect no longer crashes unexpectedly. Release Notes Url: https://tailscale.com/changelog/#2025-10-28-client Purchase Url: https://tailscale.com/pricing Documentation: Docs: https://tailscale.com/kb Tags: mesh network vpn wireguard Installer: Installer Type: burn Installer Url: https://pkgs.tailscale.com/stable/tailscale-setup-full-1.90.4.exe Installer SHA256: 62b774bf73a26de068124d569145c3bba1f4e9b6ba3afee8982166d59a7bee20 Release Date: 2025-10-28 Offline Distribution Supported: true

Elkiwa avatar Oct 29 '25 08:10 Elkiwa

I have the same issue, has been going on for a long time. Without uninstalling I can run the installer from

winget show tailscale.tailscale

and it installs fine.

mjknoll avatar Oct 31 '25 21:10 mjknoll