microsoft / microsoft/winget-cli
ElevationRequirement not working on Portable App
Open
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
- Create a portable manifest (version 1.5.0)
- Add "ElevationRequirement" to "elevationRequired" or "elevatesSelf"
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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