I used the -l option to install, why is it not installed to the specified location on the hard disk? #2812
-
|
winget install DuongDieuPhap.ImageGlass -l "D:\ImageGlass" Neither installed to location "D:\ImageGlass",Instead it installed to the default location C:\Program Files\ImageGlass |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Not all installers support the winget-cli/src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw Lines 340 to 342 in fe1eef3 |
Beta Was this translation helpful? Give feedback.
-
|
Are there any configurations that I can download and install to the path "D:\winget" by default? I install a software, such as winget install abcd, and then the software abcd is installed in the "d:\winget" folder. |
Beta Was this translation helpful? Give feedback.
-
|
As of right now there is only the defaultInstallRoot , but that is only activated if the installer requires a location |
Beta Was this translation helpful? Give feedback.
-
|
In my opinion, it's not ok when i'm using the --location flag and the application gets installed somewhere else regardless. Either make it mandatory for publishers that the --location flag takes effect or return a warning/info to the terminal which should be followed by a continue (Y/N) selection. |
Beta Was this translation helpful? Give feedback.
Not all installers support the
-lswitch. In some cases the installers can be marked as not having a location switch at all, and in other cases the location switch is simply unknown.winget-cli/src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw
Lines 340 to 342 in fe1eef3