[Package Issue]: MartiCliment.UniGetUI — dependency requires elevated installation, actual package denies elevated installation #198362
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
Running installation elevated, the following error is shown:
then running the same command from an unelevated context, the following error occurs instead:
The latter seems to be related to #192036
Steps to reproduce
winget install -e --id MartiCliment.UniGetUI
(elevated), you get the errorThe installer cannot be run from an administrator context.
winget install -e --id MartiCliment.UniGetUI
(unprivileged)Actual behavior
Expected behavior
I expected the installation to succeed. Alternatively I would have expected
winget
to "drop" elevation when invoking an installer that explicitly doesn't want to run this way.The latter can be achieved by locally setting the variable
__compat_layer
toRunAsInvoker
. See here and here (I'm the author). To the best of my knowledge both the variable name and its value are case-insensitive.Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: