Configure .NET application to run enhanced

I am creating a .NET 3.5 application that I want to run from the very beginning. Its purpose is to configure and manage the service.

I cannot find any settings in Visual Studio 2010 that can be used to configure the application this way. You might think that a checkbox will be set in the project properties that says "run elevated level", but such a parameter does not exist.

+4
source share
1 answer

Forcing an application to always run as elevated is controlled by the requestExecutionLevel parameter in the application manifest file.

All you have to do is add a new element to your project and select "Application Manifest". The correct settings will be indicated in the file with a list of comments. Change requestExecutionLevel to requireAdministrator and you will be installed.

+10
source

Source: https://habr.com/ru/post/1400696/


All Articles