B
B
BranchInCode2020-05-11 02:01:56
C++ / C#
BranchInCode, 2020-05-11 02:01:56

How to run a program with administrator rights from a project?

It is necessary to run .exe programs on behalf of the administrator, how to implement this?
Did the way: "Linker" --> "Manifest file" --> "UAC runlevel" --> "requireAdministrator (/level='requireAdministrator')" - DOES NOT WORK, what else can you suggest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2020-05-11
@Vetka_in_code

> DOES NOT WORK
Because MSVC itself must be run with admin rights. It automatically prompts me to restart with admin rights if I try to debug an application that is launched with admin rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question