添加一个Application Manifest文件,设置trustInfo节如下:

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
  <security>
    <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
      <!-- UAC Manifest Options
          If you want to change the Windows User Account Control level replace the 
          requestedExecutionLevel node with one of the following.

      <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
      <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
      <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

          Specifying requestedExecutionLevel node will disable file and registry virtualization.
          If you want to utilize File and Registry Virtualization for backward 
          compatibility then delete the requestedExecutionLevel node.
      -->
      <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
    </requestedPrivileges>
  </security>
</trustInfo>

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-12-10
  • 2021-11-23
  • 2021-05-28
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-08-24
相关资源
相似解决方案