{ "$id": "https://aka.ms/winget-settings.schema.json", "$schema": "https://json-schema.org/draft/2019-09/schema#", "title": "Microsoft's Windows Package Manager Settings Profile Schema", "definitions": { "Source": { "description": "Source repository settings", "type": "object", "properties": { "autoUpdateIntervalInMinutes": { "description": "Number of minutes before source update", "type": "integer", "default": 5, "minimum": 0, "maximum": 43200 } } }, "Visual": { "description": "Visual settings", "type": "object", "properties": { "progressBar": { "description": "Progress bar display style", "type": "string", "enum": [ "accent", "rainbow", "retro" ] }, "anonymizeDisplayedPaths": { "description": "Replaces some known folder paths with their respective environment variable", "type": "boolean", "default": true } } }, "Logging": { "description": "Logging settings", "type": "object", "properties": { "level": { "description": "Preferred logging level", "type": "string", "enum": [ "verbose", "info", "warning", "error", "critical" ] }, "channels": { "description": "The logging channels to enable", "type": "array", "items": { "uniqueItems": true, "type": "string", "enum": [ "fail", "cli", "sql", "repo", "yaml", "core", "test", "config", "default", "all" ], "maxLength": 20 }, "minItems": 0, "maxItems": 20 } } }, "InstallPrefReq": { "description": "Shared schema for preferences and requirements", "type": "object", "properties": { "scope": { "description": "The scope of a package install", "type": "string", "enum": [ "user", "machine" ], "default": "user" }, "locale": { "description": "The locales of a package install", "type": "array", "items": { "type": "string", "pattern": "^([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*$", "maxLength": 20 }, "minItems": 1, "maxItems": 10 }, "architectures": { "description": "The architecture(s) to use for a package install", "type": "array", "items": { "uniqueItems": true, "type": "string", "enum": [ "neutral", "x64", "x86", "arm64", "arm" ], "minItems": 1, "maxItems": 4 } }, "installerTypes": { "description": "The installerType(s) to use for a package install", "type": "array", "items": { "uniqueItems": true, "type": "string", "enum": [ "inno", "wix", "msi", "nullsoft", "zip", "msix", "exe", "burn", "msstore", "portable" ], "minItems": 1, "maxItems": 9 } } } }, "InstallBehavior": { "description": "Install settings", "type": "object", "properties": { "preferences": { "$ref": "#/definitions/InstallPrefReq" }, "requirements": { "$ref": "#/definitions/InstallPrefReq" }, "skipDependencies": { "description": "Controls whether package dependencies and Windows Features are skipped during installation", "type": "boolean", "default": false }, "disableInstallNotes": { "description": "Controls whether installation notes are shown after a successful install", "type": "boolean", "default": false }, "portablePackageUserRoot": { "description": "The default root directory where packages are installed to under User scope. Applies to the portable installer type.", "type": "string", "default": "%LOCALAPPDATA%/Microsoft/WinGet/Packages/" }, "portablePackageMachineRoot": { "description": "The default root directory where packages are installed to under Machine scope. Applies to the portable installer type.", "type": "string", "default": "%PROGRAMFILES%/WinGet/Packages/" }, "defaultInstallRoot": { "description": "Default install location to use for packages that require it when not specified", "type": "string", "maxLength": 32767 }, "maxResumes": { "description": "The maximum number of resumes allowed for a single resume id. This is to prevent continuous reboots if an install that requires a reboot is not properly detected.", "type": "integer", "default": 3, "minimum": 1 } } }, "UninstallBehavior": { "description": "Uninstall settings", "type": "object", "properties": { "purgePortablePackage": { "description": "Controls whether the default behavior for uninstall removes all files and directories relevant to this package. Only applies to the portable installerType.", "type": "boolean", "default": false } } }, "DownloadBehavior": { "description": "Download settings", "type": "object", "properties": { "defaultDownloadDirectory": { "description": "The default directory where installers are downloaded to.", "type": "string", "default": "%USERPROFILE%/Downloads/" } } }, "Telemetry": { "description": "Telemetry settings", "type": "object", "properties": { "disable": { "description": "Controls whether telemetry events are written", "type": "boolean", "default": false } } }, "Network": { "description": "Network settings", "type": "object", "properties": { "downloader": { "description": "Control which download code is used for packages", "type": "string", "enum": [ "default", "wininet", "do" ], "default": "default" }, "doProgressTimeoutInSeconds": { "description": "Number of seconds to wait without progress before fallback", "type": "integer", "default": 60, "minimum": 1, "maximum": 600 } } }, "Interactivity": { "description": "Interactivity settings", "type": "object", "properties": { "disable": { "description": "Controls whether interactive prompts are shown by the Windows Package Manager client", "type": "boolean", "default": false } } }, "Experimental": { "description": "Experimental Features", "type": "object", "properties": { "experimentalCMD": { "description": "Reference implementation for an experimental command", "type": "boolean", "default": false }, "experimentalARG": { "description": "Reference implementation for an experimental argument", "type": "boolean", "default": false }, "directMSI": { "description": "Enable use of MSI APIs rather than msiexec for MSI installs", "type": "boolean", "default": false }, "configuration03": { "description": "Enable support for configuration schema 0.3", "type": "boolean", "default": false }, "proxy": { "description": "Enable support for proxies", "type": "boolean", "default": false }, "sideBySide": { "description": "Enable support for improved side-by-side handling", "type": "boolean", "default": false }, "configureSelfElevate": { "description": "Enable configure commands request elevation as needed", "type": "boolean", "default": false } } } }, "allOf": [ { "properties": { "visual": { "$ref": "#/definitions/Visual" } }, "additionalItems": true }, { "properties": { "logging": { "$ref": "#/definitions/Logging" } }, "additionalItems": true }, { "properties": { "source": { "$ref": "#/definitions/Source" } }, "additionalItems": true }, { "properties": { "installBehavior": { "$ref": "#/definitions/InstallBehavior" } }, "additionalItems": true }, { "properties": { "telemetry": { "$ref": "#/definitions/Telemetry" } }, "additionalItems": true }, { "properties": { "network": { "$ref": "#/definitions/Network" } }, "additionalItems": true }, { "properties": { "interactivity": { "$ref": "#/definitions/Interactivity" } }, "additionalItems": true }, { "properties": { "experimentalFeatures": { "$ref": "#/definitions/Experimental" } }, "additionalItems": true } ], "additionalProperties": true }