setting UAC settings of a file in C#

前端 未结 3 945
谎友^
谎友^ 2020-12-12 05:00

i want to give a file(already present on the client computer .exe) permissions to always execute with administrative permissions.

please note that the file i wants

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 05:02

    Execute with administrative privileges is not a file permission.

    This is usually configured by adding a manifest file (either to the Win32 resources in the EXE, or as an external manifest). This manifest file can state whether the application needs to run elevated or not.

    I'm not entirely sure where Windows stashes the "Run this program as an administrator" compatibility setting.

提交回复
热议问题