I have a Qt 5.11 application that's being compiled for Windows and includes an application manifest that instructs Windows to run the application with Administrator privileges.
...
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
...
This run level is necessary for normal functioning of the program, as it's mostly a utility application to manage the installations of other programs (ie, the Program Files directory).
However, I am starting a detached process from within this application. I would like to start this application as a normal user-level application, not with Administrator permissions (for a couple reasons, including the fact that the child application does not handle running with Administrator permissions well).
Some things that I've tried:
- Running the main application as user-level.
- Executing some of the processes as user-level is not a problem
- Other processes need to be executed as Administrator level. Trying to open an application that requires those higher-level privileges simply causes the QProcess:startDetached() to fail.
- Running the main application as Administrator-level
- Executing some of the processes as user-level is what I'm trying to accomplish
- Running the other processes as Administrator is not an issue.
Related question (without an answer): QT Start program as regular user