You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Area-ExternalIssue outside of winget-cli sourceArea-MatchingIssue related to correlation between installed package and manifestBlocking-IssueBlocking issueIssue-BugIt either shouldn't be doing this or needs an investigation.
I installed vim.vim (currently at v. 9.1.1039), but afterward, winget thinks I have vim.vim.nightly installed and therefore offers to "upgrade" it (to v. 9.1.1071).
Steps to reproduce
Install vim.vim (only when the vim.vim.nightly version doesn't match, I presume).
Do winget list vim and/or winget upgrade
Expected behavior
Package is shown as vim.vim and no upgrade is offered.
Actual behavior
Package is listed as vim.vim.nightly and an available upgrade is shown.
Environment
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.4751
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
Reacted by Kevin Locke, Adrian Georg Herrmann, Jack Haden-Enneking, Jorenar, Chris Donnelly, Stéphane BARIZIEN and TheBestPessimist
This should probably be moved to the winget-pkgs repo, as it only affects a couple of packages. I'm guessing they share some common metadata, and might need more details described in the manifest to differentiate them better.
$ winget --version
v1.9.25200
$ winget search vim.vim
Name Id Version Source
-------------------------------------
Vim vim.vim 9.1.1039 winget
Vim vim.vim.nightly 9.1.1101 winget
$ winget list vim
Name Id Version Available Source
-------------------------------------------------------
Vim 9.1 (x64) vim.vim.nightly 9.1.1039 9.1.1101 winget
$ winget uninstall vim.vim.nightly
Found Vim 9.1 (x64) [vim.vim.nightly]
Starting package uninstall...
Successfully uninstalled
$ winget install --exact --id vim.vim --verbose
Found Vim [vim.vim] Version 9.1.1039
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://github.com/vim/vim-win32-installer/releases/download/v9.1.1039/gvim_9.1.1039_x64.exe
██████████████████████████████ 10.6 MB / 10.6 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed
$ winget list vim
Name Id Version Available Source
-------------------------------------------------------
Vim 9.1 (x64) vim.vim.nightly 9.1.1039 9.1.1101 winget
Do the nightly builds generate any unique entries to distinguish between "stable" and "nightly" builds for the Apps&Features entries? If they don't then WinGet has no way to disambiguate between them.
I'm not sure what that means. I'll check if you can explain where to look.
They have different PackageIdentifiers: vim.vim, vim.vim.nightly. Shouldn't that be enough that winget doesn't upgrade one to the other?
Apps&FeaturesEntries refers to the data that the application writes into the registry to tell Windows exactly what application is installed. You can get most of the information using appwiz.cpl in the run dialogue and finding the installed information for vim.
Alternatively, you can use this PowerShell function to return your entire Apps&FeaturesEntries table.
WinGet, like most other Windows Components, uses the information in the Apps&FeaturesEntries to determine exactly what is installed. The best practice is for each application to have its own ProductCode that gets written so that each package can be identified separately; however, not all publishers do this.
If both the nightly and the stable version write the exact same data to the registry, then to any Windows Component looking in, then there is no way to identify the channel that was installed.
Demitrius Nelon (@denelon) - After more investigation, it looks like these packages *do* in fact write the same data to AppsAndFeaturesEntries.
--> Installing WinGet
--> Disabling safety warning when running installers
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.
--> Configuring Winget
Enabled admin setting 'LocalManifestFiles'.
Enabled admin setting 'LocalArchiveMalwareScanOverride'.
--> Installing the Manifest 9.1.1094
Found Vim [vim.vim.nightly] Version 9.1.1094
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://github.com/vim/vim-win32-installer/releases/download/v9.1.1094/gvim_9.1.1094_x64.exe
██████████████████████████████ 10.6 MB / 10.6 MB
Successfully verified installer hash
Starting package install...
Successfully installed
--> Refreshing environment variables
--> Comparing ARP Entries
DisplayName DisplayVersion Publisher ProductCode Scope
----------- -------------- --------- ----------- -----
Vim 9.1 (x64) 9.1.1094 The Vim Project Vim 9.1 Machine
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install vim.vim --force; Get-ARPTable | Format-Table
Found Vim [vim.vim] Version 9.1.1039
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://github.com/vim/vim-win32-installer/releases/download/v9.1.1039/gvim_9.1.1039_x64.exe
██████████████████████████████ 10.6 MB / 10.6 MB
Successfully verified installer hash
Starting package install...
Successfully installed
DisplayName DisplayVersion Publisher ProductCode Scope
----------- -------------- --------- ----------- -----
Vim 9.1 (x64) 9.1.1039 The Vim Project Vim 9.1 Machine
Would it be possible to get a different product code for the nightly builds?
I don't get that. What does that mean? We are using nightly.yml and stable.yml to release under different projects. What exactly should be changed here?
Christian Brabandt (@chrisbra) - The issue is that the installer for both stable amd nightly write the same uninstall entries to the Registry (I belive this happens in dosinst.c?).
This means that Windows Components perceive the nightly and the stable as the same package.
The only real way for them to be separate applications is to have them under different Product Codes (hRootKey using the syntax from dosinst.c). WinGet may be able to differentiate them without different root keys, if the stable package and nightly have a different value for DisplayName. For example, if stable were Vim 9.1 (x64) and nightly were Vim Nightly 9.1 (x64)
But that would require a source change to differentiate the two channels . That is not how it works. Each change to the source is a stable version. Since we release a few patches every day, that would mean we have a new stable release every day (which annoys some users). Therefore, we split this up, use the nightly for the daily patches and roughly every hundred patches one release is promoted to the stable "channel".
But that would require a source change to differentiate the two channels . That is not how it works. Each change to the source is a stable version. Since we release a few patches every day, that would mean we have a new stable release every day (which annoys some users). Therefore, we split this up, use the nightly for the daily patches and roughly every hundred patches one release is promoted to the stable "channel".
Understandable. In that case, I think a decision needs to be made as to whether -
vim.vim.nightly should be removed from WinGet until Support different release channels [released, beta, alpha] #147 is inplemented. This means that only stable releases would be offered through WinGet, anyone on an older nightly would be offered updates to the latest stable through WinGet, but anyone on a nightly that is newer than stable would not see an update available in WinGet
Reacted by AltitudeApps, Matt Campbell, Michael Holt, Jack Haden-Enneking and Stéphane BARIZIEN
I can repro this, albeit with a specific workflow.
In order to work around issues with winget upgrade all and with the installers for some apps I have written a Update-AllAppsWithWinGet.ps1 script that enumerates apps that can be updated using Get-WinGetPackage | ? { $_.IsUpdateAvailable } and then updates the apps one by one using winget upgrade --id xxx --version yyy.
Depending on the versions, and maybe (?) on the machine, the vim.vim / vim.vim.nightly confusion does, or does not, take place.
Area-ExternalIssue outside of winget-cli sourceArea-MatchingIssue related to correlation between installed package and manifestBlocking-IssueBlocking issueIssue-BugIt either shouldn't be doing this or needs an investigation.
Activity
stephengillie commentedon Feb 11, 2025
This should probably be moved to the winget-pkgs repo, as it only affects a couple of packages. I'm guessing they share some common metadata, and might need more details described in the manifest to differentiate them better.(edit: certainty)Atario commentedon Feb 11, 2025
They seem to think it's a problem for here:
microsoft/winget-pkgs#222278
stephengillie commentedon Feb 12, 2025
Apologies for the circular routing.
Trenly commentedon Feb 12, 2025
[Policy] Area-Matching
[Policy] Issue Bug
jacktose commentedon Feb 12, 2025
I can replicate this:
I don't know the internal logic of the upgrade commands, but looking at the end of the list of manifests for package versions:
I wonder if it's as simple as
nightlysorting to the end of the (otherwise numeric) list?denelon commentedon Feb 13, 2025
Do the nightly builds generate any unique entries to distinguish between "stable" and "nightly" builds for the Apps&Features entries? If they don't then WinGet has no way to disambiguate between them.
jacktose commentedon Feb 14, 2025
I'm not sure what that means. I'll check if you can explain where to look.
They have different
PackageIdentifiers:vim.vim,vim.vim.nightly. Shouldn't that be enough that winget doesn't upgrade one to the other?Trenly commentedon Feb 15, 2025
Apps&FeaturesEntriesrefers to the data that the application writes into the registry to tell Windows exactly what application is installed. You can get most of the information usingappwiz.cplin the run dialogue and finding the installed information forvim.Alternatively, you can use this PowerShell function to return your entire
Apps&FeaturesEntriestable.WinGet, like most other Windows Components, uses the information in the Apps&FeaturesEntries to determine exactly what is installed. The best practice is for each application to have its own ProductCode that gets written so that each package can be identified separately; however, not all publishers do this.
If both the nightly and the stable version write the exact same data to the registry, then to any Windows Component looking in, then there is no way to identify the channel that was installed.
Trenly commentedon Feb 15, 2025
Demitrius Nelon (@denelon) - After more investigation, it looks like these packages *do* in fact write the same data to
AppsAndFeaturesEntries.Trenly commentedon Feb 15, 2025
Christian Brabandt (@chrisbra) - Tagging you as I see your username associated with the latest submissions of Vim over at winget-pkgs.
chrisbra commentedon Feb 15, 2025
I don't get that. What does that mean? We are using nightly.yml and stable.yml to release under different projects. What exactly should be changed here?
Trenly commentedon Feb 15, 2025
Christian Brabandt (@chrisbra) - The issue is that the installer for both
stableamdnightlywrite the same uninstall entries to the Registry (I belive this happens in dosinst.c?).This means that Windows Components perceive the nightly and the stable as the same package.
The only real way for them to be separate applications is to have them under different Product Codes (
hRootKeyusing the syntax fromdosinst.c). WinGet may be able to differentiate them without different root keys, if the stable package and nightly have a different value forDisplayName. For example, if stable wereVim 9.1 (x64)and nightly wereVim Nightly 9.1 (x64)chrisbra commentedon Feb 15, 2025
But that would require a source change to differentiate the two channels . That is not how it works. Each change to the source is a stable version. Since we release a few patches every day, that would mean we have a new stable release every day (which annoys some users). Therefore, we split this up, use the nightly for the daily patches and roughly every hundred patches one release is promoted to the stable "channel".
Trenly commentedon Feb 15, 2025
Understandable. In that case, I think a decision needs to be made as to whether -
- or -
vim.vim.nightlyshould be removed from WinGet until Support different release channels [released, beta, alpha] #147 is inplemented. This means that only stable releases would be offered through WinGet, anyone on an older nightly would be offered updates to the latest stable through WinGet, but anyone on a nightly that is newer than stable would not see an update available in WinGetsba923 commentedon Jul 3, 2026
I can repro this, albeit with a specific workflow.
In order to work around issues with
winget upgrade alland with the installers for some apps I have written aUpdate-AllAppsWithWinGet.ps1script that enumerates apps that can be updated usingGet-WinGetPackage | ? { $_.IsUpdateAvailable }and then updates the apps one by one usingwinget upgrade --id xxx --version yyy.Depending on the versions, and maybe (?) on the machine, the
vim.vim/vim.vim.nightlyconfusion does, or does not, take place.sba923 commentedon Sep 30, 2026
Because of this, updating
vimhas become essentially impossible, because of portfolio-performance/portfolio#5955