Replies: 2 comments 8 replies
-
Would an Note This would have to be specified at the root level. |
Beta Was this translation helpful? Give feedback.
-
Short answerWith how WinGet handles installation of zipped portables, a binary that requires Long answerDepending on the environment, WinGet will handle installations of portables (that need to be added in PATH) differently. 1. Installation from an admin shell / Developer mode turned ONWinGet will have one directory in the PATH variable (that's usually 2. Installation from a user shell and Developer mode turned OFFIn this case, WinGet cannot create a symlink (symlinking requires admin privileges / Developer mode) and will resort to putting the entire path of the package in the PATH variable. You will need to restart the shell/terminal to reload the PATH variable after installation but a package such as one described above will work correctly and the files will be referenced properly. However, this approach will quickly use up the character limit of the PATH variable if you continue installing packages this way. There's discussion in the linked issue for possible alternative approaches, but for now these are the caveats. These packages are tracked by "Zipped-Binaries" label over at the CLI repo |
Beta Was this translation helpful? Give feedback.
-
I have a portable assembly that is a compiled .NET application.
This works fine under almost all circumstances, but if someone installed it as "admin," then Winget does not create the symbolic linking, and the application will fail to run within the context of its own folder. Thus, referenced assemblies will not be found.
@Trenly suggested that I statically linked assemblies... however, I have never done this (had to go look it up) and it looks like there is no support for it in .NET as far as I can see. I chatted with @stephengillie on this and I don't think we could come to a resolution.
I am not interested in creating an "installer" as the zip; its application works just fine. This, as far as I can see, is a winger issue.
For me this affects #140904 and #162930.... and any other command line application that I might build.
Beta Was this translation helpful? Give feedback.
All reactions