Does MSI Installer support scope user? #103877
-
It look like I am trying to resolves an issues. But suddenly goes validation error on the pipelines. It look like it did not work on Azure Pipelines. That PR is 103854. Does MSI Installer support scope user? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It depends on the installer. If it is an MSI built with Wix, often times a user scoped install will still write its entries to the machine scoped registry incorrectly. This is a bug with the wix installer itself, and makes it difficult for winget to reason about them effectively. If it is an MSI that isn’t built with wix, it depends on how the publisher created the assembly. Some publishers will specify that their msi can only install to a machine context, others will specify that it can only install to a user context. The most common that I've seen is where if running elevated it will install to machine and if non-elevated it will install to user (think scope: machine & elevationRequired; and scope:user & elevationProhibited). Basically, the only way to know for sure is to see if the publisher has any information on how they install, to test how it installs elevated/non-elevated, or to see if there are any cli switches provided. TLDR - Yes they can support user scope, but only if the publisher supports it |
Beta Was this translation helpful? Give feedback.
It depends on the installer. If it is an MSI built with Wix, often times a user scoped install will still write its entries to the machine scoped registry incorrectly. This is a bug with the wix installer itself, and makes it difficult for winget to reason about them effectively. If it is an MSI that isn’t built with wix, it depends on how the publisher created the assembly. Some publishers will specify that their msi can only install to a machine context, others will specify that it can only install to a user context. The most common that I've seen is where if running elevated it will install to machine and if non-elevated it will install to user (think scope: machine & elevationRequired…