My app(qt5) for Microsoft Store can't request administrator privileges.

C404 41 Reputation points
2020-08-25T09:06:48.883+00:00

Hi.

I used DesktopAppConverter.exe to convert my app(qt5) to UWP(.appx) to submit MS Store. And i used this code.

QMAKE_LFLAGS_WINDOWS += "/MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\""

I succeeded in submitting my app to MS Store but i faced the problem.

20069-ms-store.png

20212-error.png

When I run my app, receive privilege error message.

20202-administartor-privileges-guide.png

I must use this method to run the app.

Is there a way to get an administrator privilege request when MS App running?

Thanks.

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
886 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,446 Reputation points Microsoft Vendor
    2020-08-26T01:39:59.857+00:00

    Hello,

    Welcome to Microsoft Q&A!

    This is the expected behavior. It is mentioned in the document here: Prepare to package a desktop application -- 'Your application needs to work while running as the interactive user. Users who install your application may not be system administrators, so requiring your application to run elevated means that it won't run correctly for standard users. If you plan on publishing your app to the Microsoft Store, apps that require elevation for any part of their functionality won't be accepted into the Store.'

    So you might need to change the functions that require administrator privileges.

    Thank you.

    0 comments No comments

0 additional answers

Sort by: Most helpful