microsoft / microsoft/winget-cli
elevationRequired does not work for MSIs
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
When the field ElevationRequirement: elevationRequired is set, MSI installers don't work properly. The issue appears to be that ShellExecute does not know how to use the verb runas for an MSI.
Steps to reproduce
For details and a screenshot of the issue occurring, see:
- microsoft/winget-pkgs#36230
Expected behavior
The installer should be run as administrator, with the UAC prompt showing details from the MSI.
Actual behavior
Windows reports not knowing how to handle the file. For details and a screenshot of the issue occurring, see:
- microsoft/winget-pkgs#36230
Environment
Windows Package Manager (Preview) v1.3.1391-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22808.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.1391.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
Start by tracing how ElevationRequirement: elevationRequired is handled when an MSI is launched through ShellExecute, using microsoft/winget-pkgs#36230 for the reproduction details and screenshot. Reproduce the failure with an MSI and confirm that the installer runs as administrator with the UAC prompt showing details from the MSI.
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
- 32/100