winget-cli
winget-cli copied to clipboard
Wix and MSI not considered equal
Brief description of your issue
When both WIX and MSI are specified in the manifest, architecture may be disregarded if the install technology is detected as MSI. This causes issues when packages require specific architecture to run
Steps to reproduce
- Open a new 64-bit VM / Sandbox
winget install Tortoisesvn -v 1.14.29387winget upgrade tortoisesvn --verbose-logs
Expected behavior
Application to be upgraded successfully
Actual behavior
2022-09-30 14:03:09.828 [CLI ] Starting installer selection.
2022-09-30 14:03:09.828 [CLI ] Installer [X64,wix,Machine,en-US] is current best choice
2022-09-30 14:03:09.828 [CLI ] Installer [X86,msi,Machine,en-US] is better than [X64,wix,Machine,en-US] due to: Installed Type
2022-09-30 14:03:09.828 [CLI ] Installer [X86,msi,Machine,en-US] is current best choice
2022-09-30 14:03:09.828 [CLI ] Installer [Arm64,msi,Machine,en-US] not applicable: Machine is not compatible with Arm64
Application cannot be installed as 32-bit installer will not run on x64
Environment
PS C:\Windows\system32> winget --info
Windows Package Manager v1.3.2091
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19041.2006
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir