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
{{ message }}
Repository navigation
Portable installers are not renamed in non-symlinked installations #3437
Issue-BugIt either shouldn't be doing this or needs an investigation.Issue-FeatureThis is a feature request for the Windows Package Manager client.PortableIssue related to portable package
In a non-symlinked installation i.e. installation from a user shell in non-developer mode or when ArchiveBinariesDependOnPath: true, WinGet does not rename the portable file to PortableCommandAlias / Commands value from the manifest.
c. winget install Microsoft.Sysinternals.TCPView on an x64 machine since the x64 executable is named TCPView64.exe
Expected behavior
The portable file to be renamed allowing user to invoke the application through the specified command in the manifest.
Actual behavior
Portable file isn't renamed and users have to type the full exe name in order to invoke the app.
Environment
Windows Package Manager (Preview) v1.6.1573-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.1573.0
Reacted by philip-young, Jason Wei, soredake, weeix, AbdAlrahman Ghanem, Jan-Willem Mulder, Matthew Gamble and Imre Eilertsen
In x64 systems, you'd want to use ZoomIt64.exe and rename it to ZoomIt.exe in the Packages Directory, but this rename would cause conflict with the existing portable (supported for a different arch) in the directory. Maybe delete the existing one and force rename changes in this case?
This has been partially addressed with #3439 , which covers when it is a single portable file, or when it the NestedInstallerPath points to a portable at the root of a Zip file. If the portable is inside of a folder in a Zip file, it will not be renamed. More work needs to be done here, but at least some of the cases have been covered
Testing manifest locally works, but the command added to PATH is "bicep-win-x64", not "bicep".
PS >Get-Command bicep | fl
Get-Command: The term 'bicep' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS >Get-Command bicep-win-x64 | fl
Name : bicep-win-x64.exe
CommandType : Application
Definition : C:\Users\olav.birkeland\AppData\Local\Microsoft\WinGet\Links\bicep-win-x64.exe
Extension : .exe
Path : C:\Users\olav.birkeland\AppData\Local\Microsoft\WinGet\Links\bicep-win-x64.exe
FileVersionInfo : File: C:\Users\olav.birkeland\AppData\Local\Microsoft\WinGet\Links\bicep-win-x64.exe
InternalName: bicep.dll
OriginalFilename: bicep.dll
FileVersion: 0.29.47.4906
FileDescription: bicep
Product: bicep
ProductVersion: 0.29.47+132ade51bc
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language: Language Neutral
PS >
This issue is more exaggerated now with the introduction of ArchiveBinariesDependOnPath: true (#4816). All zip-binary packages will face this issue since those installations are always non-symlink
Is ArchiveBinariesDependOnPath actually documented anywhere other than in GH issues? I've spent a good amount of time trying to figure out why winget won't create a symlink for scrcpy. I thought it was a bug or a problem with my setup at first. It would be really nice if the installer output made this behaviour explicit. Right now it only says "Command line alias added: scrcpy", even though I expected a symlinked installation because of my admin/dev-mode shell.
(sorry if this is too off-topic for this issue, I just came here while on my journey to figure out what was happening to my scrpy installation)
Reacted by EriusCalrissian, Rich Purnell and Funtykov Mykyta
Issue-BugIt either shouldn't be doing this or needs an investigation.Issue-FeatureThis is a feature request for the Windows Package Manager client.PortableIssue related to portable package
Activity
mdanish-kh commentedon Jul 14, 2023
An edge case may be
Microsoft.Sysinternals.ZoomItwhich is a ZIP package that contains portables for all 3 arches named as:ZoomIt.zip/
├─ ZoomIt64.exe
├─ ZoomIt.exe
├─ ZoomIt64a.exe/
In x64 systems, you'd want to use ZoomIt64.exe and rename it to ZoomIt.exe in the Packages Directory, but this rename would cause conflict with the existing portable (supported for a different arch) in the directory. Maybe delete the existing one and force rename changes in this case?
Trenly commentedon Oct 11, 2023
This has been partially addressed with #3439 , which covers when it is a single portable file, or when it the NestedInstallerPath points to a portable at the root of a Zip file. If the portable is inside of a folder in a Zip file, it will not be renamed. More work needs to be done here, but at least some of the cases have been covered
o-l-a-v commentedon Sep 6, 2024
Is my PR hit by this issue, or am I doing something wrong? 🤔
Relevant part of manifest:
Testing manifest locally works, but the command added to PATH is "bicep-win-x64", not "bicep".
WinGet version 1.8.1911.
Trenly commentedon Sep 6, 2024
It looks like you’re trying to use
NestedInstallerFileswhich is only valid onInstallerType: zip. You should remove that section and instead useo-l-a-v commentedon Sep 6, 2024
Aha! Sweet, thanks Kaleb Luedtke (@Trenly), that worked. 🙂
Use "Commands" instead for portable
mdanish-kh commentedon Mar 1, 2025
This issue is more exaggerated now with the introduction of
ArchiveBinariesDependOnPath: true(#4816). All zip-binary packages will face this issue since those installations are always non-symlinkSee also: microsoft/winget-pkgs#233868
ririshi commentedon Sep 9, 2025
Is
ArchiveBinariesDependOnPathactually documented anywhere other than in GH issues? I've spent a good amount of time trying to figure out why winget won't create a symlink forscrcpy. I thought it was a bug or a problem with my setup at first. It would be really nice if the installer output made this behaviour explicit. Right now it only says "Command line alias added: scrcpy", even though I expected a symlinked installation because of my admin/dev-mode shell.(sorry if this is too off-topic for this issue, I just came here while on my journey to figure out what was happening to my scrpy installation)