Skip to content

elevationRequired does not work for MSIs #2231

@JohnMcPMS

Description

@JohnMcPMS

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:

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions