Installation by winget creates directory to current directory
acomagu opened this issue · 1 comments
Hi, I'm not sure if here is right place to report this issue, but I'll post.
I tried installing Flemozi by winget, then it installs it to <current-dir>/Flemozi
.
The installation directory should be controlled by winget, and the default directory is %LOCALAPPDATA%\Packages\
. Installing software into current directory(the directory where user executes winget install flemozi
) seems to be incorrect behavior.
🤔 I noticed that too. I found it surprising at first, but also found it pretty convenient, since I deliberately install all my apps on a separate hard drive partition and happened to have my current working directory be the preferred installation directory anyway, which I keep as d:\programs
and never %localappdata%
for a few reasons:
(1) it's easy to find and backup all your apps if they're under the same easy-to-access-not-deeply-buried-folder.
(2) it's easier to share binaries between bootable OS's (I have both Win7 and Win10 on my machines)
(3) appdata/ gets blown away by reinstallation
(4) it's easier to clear out your appdata folder if it's not also littered with binaries
(5) localappdata was more intended to hold application data rather than application binaries, despite the abuse over the years by various installers :/.
(6) some more secure environments block app execution from binaries stuffed under appdata to mitigate risk.
So if this is changed, then so long as --location
still works correctly, I'm content ^_^. e.g.
winget install KRTirtho.flemozi --location d:\programs\utility\flemozi