Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation by winget creates directory to current directory #34

Open
acomagu opened this issue Jan 6, 2024 · 1 comment
Open

Installation by winget creates directory to current directory #34

acomagu opened this issue Jan 6, 2024 · 1 comment

Comments

@acomagu
Copy link

acomagu commented Jan 6, 2024

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.

@fdwr
Copy link

fdwr commented Jan 12, 2024

🤔 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants