@burnout426 said in Opera automatically sets itself as the default browser on installation (Windows):
Haven't messed with winget and don't really know how it's all set up, but there might be a way to pass --setdefaultbrowser=0 to the winget upgrade command you use to upgrade Opera. Or, if you do winget upgrade --all, there might be some file that you can put --setdefaultbrowser=0 in for Opera so its upgrade command passes that to Opera's installer.
But, that's assuming winget makes use of the Opera installer at all. If the Opera winget package is just Opera's install files that winget just extracts or something, winget would need to support not making Opera the default browser on upgrade.
Something to investigate though.
For Winget you have to use the --override
parameter.
For example : > winget update --override "setdefaultbrowser=0 desktopshortcut=0 startmenushortcut=0 pintotaskbar=0 launchbrowser=0" Opera.Opera
The installer parameter copyonly=[0|1]
, is usable too but not sure of what append after this kind of install.
: If true, the installer will only copy the files to the installation folder and will otherwise not perform any modification on the system.
For the > winget update --all
I use > winget update --silent --accept-package-agreements --accept-source-agreements --all --wait --disable-interactivity --override "setdefaultbrowser=0 desktopshortcut=0 startmenushortcut=0 pintotaskbar=0 launchbrowser=0"
and as many installer ignore unknown parameters it works most of the time.