microsoft / microsoft/winget-cli

ElevationRequirement not working on Portable App

Open
#3,756 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Portable
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

The "ElevationRequirement" option seems to be ignored in portable apps.

Steps to reproduce
  1. Create a portable manifest (version 1.5.0)
  2. Add "ElevationRequirement" to "elevationRequired" or "elevatesSelf"
  3. Open an unelevated console window and install the app
Expected behavior
  • If "ElevationRequirement" is set to "elevationRequired" I expected a message the an elevated window is necessary
  • If "ElevationRequirement" is set to "elevatesSelf " I expected elevation request
Actual behavior
  • No message occur
  • The app will be installed. It seems that "ElevationRequirement" is completly ignored
Environment
Windows-Paket-Manager v1.6.2771
Windows: Windows.Desktop v10.0.19045.3448
Paket: Microsoft.DesktopAppInstaller v1.21.2771.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a version 1.5.0 portable manifest using both elevationRequired and elevatesSelf from an unelevated Windows console. Trace where ElevationRequirement is handled during portable-app installation, then verify that the required message or elevation request occurs instead of allowing installation silently.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.