WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

WinAppSDK app that runs as administrator cause Publisher to be unknown.

Open Qws opened this issue 3 years ago • 1 comments

Describe the bug

GameBlockerAdministrator

My app is available in Microsoft Store, and the app requires to be run as administrator, the apps runs fine, but when you run it Windows says the publisher is unknown. Which would scare people away, which I can totally understand.

image

But in the Windows app settings of my app, you can see the publisher is known. It's same as on Microsoft Store.

Isn't this a bug? Windows does know who the publisher of the app is, but when you run it as administrator "it temporarily forgets".

Steps to reproduce the bug

Force Windows App SDK to run in adminstrator.

With these capabilities enabled:

  <Capabilities>
    <rescap:Capability Name="runFullTrust" />
    <rescap:Capability Name="allowElevation" />
  </Capabilities>

And in app.manifest:

  <trustInfo
    xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges
        xmlns="urn:schemas-microsoft-com:asm.v3">
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>

Expected behavior

GameBlockerAdministrator

I expect app in administrator mode to have publisher from the Microsoft Store.

Screenshots

No response

NuGet package version

None

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 21H2 (22000)

IDE

Visual Studio 2022

Additional context

No response

Qws avatar Feb 11 '23 11:02 Qws