Forum Discussion

TIMOTHY_MANGAN's avatar
Jun 08, 2022
Solved

WAP Capabilities missing

I am building an MSIX project using the Windows Application Package under Visual Studio.   The application exe is an administrator tool that has a manifest requiring admin.  Yes, I know that won'...
  • TIMOTHY_MANGAN's avatar
    Jun 08, 2022
    [Replying to my own post. I am a bad person...]
    The issue was that I forgot that allowelevation is part of the rescap schema extension and not uap extension. Fixing this resolved the issue.

    So in case someone else has a similar issue, the technique was to create the WAP project, and then manually edit the Package.appxmanifest file to add in the needed capability. You'll find a capabilities element with at least the "runFullTrust" capability (which is also part of the rescap schema extension, so you can just copy/paste and change the name. Other capabilities that you might want to add manually might be under different extensions, so check.

Resources