How to just one-time allow the administrator permission for a Windows Store UWP?

Jack Lee 李秉哲 1 Reputation point
2021-10-27T09:45:15.42+00:00

Hello teams,

I have a Windows store app and already uploaded.

But I have an issue about user launch each time will show UAC dialog.

It's because this APP have run as administrator and read/write registry value.

Does any kind method can avoid this UAC dialog without disable UAC?

Thanks for your help:)

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,766 Reputation points Microsoft Vendor
    2021-10-28T09:49:11.223+00:00

    Hello,

    Welcome to Microsoft Q&A!

    UWP apps are running in the sandbox and have limitations when accessing some systems resources. One of them is accessing the registry values. So for native UWP apps, it won't ask for administrator privileges. Based on your description, you are using desktop bridge and maybe you are using some Win32 APIs to read the registry value which requires the administrator privileges. So the behavior you got is excepted. There is no way to make it only push once.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments