Default settings when upgrading packages #1959
-
Discussed in #1953Originally posted by AnonymousWP February 18, 2022 So what are the default settings when I'm upgrading an existing package? For example, when I installed Python the first time, I could check the box that adds Python to PATH, I did not create a start menu shortcut but I did check the box for creating a desktop shortcut. How does Winget handle this? Does it simply check all boxes by default or does it use some configuration file that every application generates after installing? I have found this, but this only mentions how to override and not what the defaults are that Winget uses. Plus, we'd have to look up documentation per application I guess. Hopefully it will be possible to have one repository (or built-in Winget) with all available override options per application. Besides, is anyone aware of a feature request about changelogs (equivalent to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Different installers have different switches. We primarily automate passing the right switches for "silent", and "silent with progress" for known installer types. The manifest also has a key to indicate if the previous version should be uninstalled first on upgrade. The default behavior is to run the installer in "silent with progress" switches. Any of the settings associated with icons/environment variables/ etc. are dependent on the installer itself. We don't have a "changelog" to read programmatically with most installers. We've started adding keys to the manifest for things like release dates and release notes, and we can add more, but they aren't at parity with many Linux package distributions yet. |
Beta Was this translation helpful? Give feedback.
@AnonymousWP,
Different installers have different switches. We primarily automate passing the right switches for "silent", and "silent with progress" for known installer types.
The manifest also has a key to indicate if the previous version should be uninstalled first on upgrade.
The default behavior is to run the installer in "silent with progress" switches. Any of the settings associated with icons/environment variables/ etc. are dependent on the installer itself.
We don't have a "changelog" to read programmatically with most installers. We've started adding keys to the manifest for things like release dates and release notes, and we can add more, but they aren't at parity with many Lin…