I want to change the install path of winget(the package manager for windows) to D:\Program Files{insert folder name}, this is the command i was told to use on the documentation
winget install --id {insert program id} --location "D:\Program Files\{insert folder name}"but what it instead does is it installs the file in D:\Program
So what i understood is it reads the location upto the space and creates the folder till there
To make sure i used a folder name without space and it installed correctly
I am very new to all this so please forgive my noob question
(I posted this question on stackoverflow initially but it got flagged as computer hardware/software and told me to post it here, how does this come under that ?)
Thanks in advance
1 Answer
This feature is proposed inCan the software installation path be set? #489.
The answer on Jul 11, 2020 was:
There is already a function in Winget, use
winget install Software.Name --location "C:\Folder\Software.Name"However the support is limited right now.
BUT, we also just got support for Interactive mode winget install Software.Name
-i, which is a safer option then--locationright now.
The location option is new and is likely to have bugs, and it seems
that you have found one.
The best solution is perhaps to wait for this to be fixed, and to add a bug report to .
If the -i solution is not an option, you might as temporary
workaround move manually the contents of the folder on C to D and
replace the C folder by a symbolic link to the D folder.
For more information seeThe Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows.