【问题标题】:application manifest file through mage.exe set to administrator privilege应用程序清单文件通过 mage.exe 设置为管理员权限
【发布时间】:2017-07-10 06:01:52
【问题描述】:

使用 .dll 作为参考的应用程序。最初,DLL 版本是 1.2.x.x 版本,并且可以完美运行。当我使用 dll (1.3.x.x) 的更新版本时,它无法正常工作。

Hack:我以 run as administrator 身份打开我的 Visual Studio,然后当前版本的 dll(1.3.x.x) 正在运行。

应用程序 .net 框架:4.5 视觉工作室:2012

应用程序通过mage.exe 创建manifest(application.exe.manifest)

问题: 首先,为什么我的应用程序需要新 dll(1.3.x.x) 的“以管理员身份运行”权限。 二、如何解决。

<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" />

         If you want to utilize File and Registry Virtualization for backward 
         compatibility th[![enter image description here][1]][1]en delete the requestedExecutionLevel node.
    -->
        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
</requestedPrivileges>

【问题讨论】:

    标签: c# visual-studio manifest mage


    【解决方案1】:

    只需将其更改为&lt;requestedExecutionLevel level="requireAdministrator" uiAccess="false" /&gt;,而且我们不知道您的 .dll 代码/文件,因此如果您没有向我们提供有关该问题的足够信息,我们将无法提供帮助。

    【讨论】:

      猜你喜欢
      • 2013-09-27
      • 2015-09-08
      • 2012-10-13
      • 1970-01-01
      • 2012-12-06
      • 2013-10-14
      • 2011-08-10
      • 2013-01-20
      • 2013-07-20
      相关资源
      最近更新 更多