commit 25243766d1bf6b34955909c6d4066b9478dc03f8
parent 630e338be039de7f452338e5b8056cf29cc615b4
Author: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>
Date: Fri, 22 Jul 2022 16:26:41 -0700
update settings documentation with changes from 1.3 client (#2363)
Diffstat:
1 file changed, 45 insertions(+), 0 deletions(-)
diff --git a/doc/Settings.md b/doc/Settings.md
@@ -49,6 +49,37 @@ Color of the progress bar that WinGet displays when not specified by arguments.
The `installBehavior` settings affect the default behavior of installing and upgrading (where applicable) packages.
+### Disable Install Notes
+The `disableInstallNotes` behavior affects whether installation notes are shown after a successful install. Defaults to `false` if value is not set or is invalid.
+
+```json
+ "installBehavior": {
+ "disableInstallNotes": true
+ },
+```
+
+### Portable Package User Root
+The `PortablePackageUserRoot` setting affects the default root directory where packages are installed to under `User` scope. This setting only applies to packages with the `portable` installer type. Defaults to `%LOCALAPPDATA%/Microsoft/WinGet/Packages/` if value is not set or is invalid.
+
+> Note: This setting value must be an absolute path.
+
+```json
+ "installBehavior": {
+ "PortablePackageUserRoot": "C:/Users/FooBar/Packages"
+ },
+```
+
+### Portable Package Machine Root
+The `PortablePackageMachineRoot` setting affects the default root directory where packages are installed to under `Machine` scope. This setting only applies to packages with the `portable` installer type. Defaults to `%PROGRAMFILES%/WinGet/Packages/` if value is not set or is invalid.
+
+> Note: This setting value must be an absolute path.
+
+```json
+ "installBehavior": {
+ "PortablePackageMachineRoot": "C:/Program Files/Packages/Portable"
+ },
+```
+
### Preferences and Requirements
Some of the settings are duplicated under `preferences` and `requirements`. `preferences` affect how the various available options are sorted when choosing the one to act on. For instance, the default scope of package installs is for the current user, but if that is not an option then a machine level installer will be chosen. `requirements` filter the options, potentially resulting in an empty list and a failure to install. In the previous example, a user scope requirement would result in no applicable installers and an error.
@@ -90,6 +121,20 @@ The `architectures` behavior affects what architectures will be selected when in
},
```
+## Uninstall Behavior
+
+The `uninstallBehavior` settings affect the default behavior of uninstalling (where applicable) packages.
+
+### Purge Portable Package
+
+The `purgePortablePackage` behavior affects the default behavior for uninstalling a portable package. If set to `true`, uninstall will remove all files and directories relevant to the `portable` package. This setting only applies to packages with the `portable` installer type. Defaults to `false` if value is not set or is invalid.
+
+```json
+ "uninstallBehavior": {
+ "purgePortablePackage": true
+ },
+```
+
## Telemetry
The `telemetry` settings control whether winget writes ETW events that may be sent to Microsoft on a default installation of Windows.