I totally missed this feature got implemented: [Wayback/Archive] Use Remembered Arguments for a Package During Upgrades · Issue #797 · chocolatey/choco. I also seem to be lucky I have not tried it out yet (:
I bumped into it via [Wayback/Archive] Chocolatey Software | Notepad++ 8.4.4, which had this interesting comment:
If you want Notepad++ 32 bit and you want it to stay on 32 bit with upgrades, ensure you are on Chocolatey 0.10.4 (or newer). Then add `
-x86
` to your installation arguments. Then turn on the remembered arguments feature with ‘choco feature enable -n useRememberedArgumentsForUpgrades
‘ – this will ensure that `-x86
` gets passed on upgrade when running `choco upgrade all
`. For more information on how this works, see https://github.com/chocolat…797
First of all, if you started using Chocolatey at or before 0.14, the useRememberedArgumentsForUpgrades
feature is disabled by default and kept that way even after upgrading to the most recent version. You can see executing choco feature list
on a system that started with Chocolatey: