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

Installed tauri-app with default settings is detected as different Winget application

Open tkappedev opened this issue 9 months ago • 2 comments

Relevant area(s)

WinGet CLI

Relevant command(s)

winget list

Brief description of your issue

Installing a tauri application with default settings (keeping the name 'tauri-app'), is detected by Winget as completely different application.

Image

Steps to reproduce

  1. Choose any preferred variant of create-tauri-app: https://v2.tauri.app/start/create-project/
  2. When prompted on name, etc., select the default settings, keep name as 'tauri-app' and choose any stack
  3. Build the application: https://v2.tauri.app/reference/cli/#build
  4. Install the application with the created .msi package (tauri-app\src-tauri\target\release\bundle\msi\tauri-app_0.1.0_x64_en-US.msi) and use default install location (C:\Program Files\tauri-app)
  5. Do a winget list or winget list --upgrade-available.
  6. The installed app will be detected as maqibin.MDXNotes, and with winget as source Image

This only happens if the default name tauri-app is used, other names aren't detected like this.

Expected behavior

The installed application shouldn't show up at all, as it is NOT available with winget.

Actual behavior

Another application which was never installed shows up and an upgrade via winget would cause an installation of said application.

Environment

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

Windows: Windows.Desktop v10.0.22621.6060
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.460.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

tkappedev avatar Feb 10 '26 10:02 tkappedev

I took a quick look at the MDXNotes manifest.

It looks like it's using a ProductCode and an UpgradeCode from the MSI.

Does the default application created using tauri use the same ProductCode? If so, that's probably what's causing the correlation.

I don't know enough about tauri to know if there should be some updated logic in the tooling to generate a unique ProductCode/UpgradeCode for the MSI, but that's my initial thought.

denelon avatar Feb 12 '26 19:02 denelon

Thanks for your reply. You're correct, my colleague (@drebouta) and I checked different .msi builds of newly created tauri apps via Orca and it seems the ProductCode is always unique, but the UpgradeCode is the same and matches the UpgradeCode of MDXNotes:

Image

Those three builds all use different Identifiers (specified in src-tauri/tauri.conf.json), so it seems this setting doesn't matter, only the name is used in the build to determine the UpgradeCode.

Another tests with a different name, tauri-app2, and on two different machines, causes to UpgradeCode to change, but is again the same for both:

Image

So this is probably more of an issue with tauri itself, as it should, imo, use the identifier or a combination of identifier+name to generate the UpgradeCode, and not only the name.

I'm not sure if the current situation may still have some security impact, as imo an app shouldn't be detected by a "default" UpgradeCode of any framework. But anyway, I think we will first open an issue with tauri directly to look more deeply into this.

tkappedev avatar Feb 16 '26 11:02 tkappedev