[英]application manifest file through mage.exe set to administrator privilege
Application using a .dll as reference. 使用.dll作为参考的应用程序。 Initially, the DLL version is 1.2.xx version and its perfect working.
最初,DLL版本是1.2.xx版本,并且可以完美运行。 When I use the updated version of dll (1.3.xx) then it not working.
当我使用dll(1.3.xx)的更新版本时,它不起作用。
Hack: I Open my visual studio as run as administrator
then the current version of dll(1.3.xx) is working. 哈克:我
run as administrator
身份打开Visual Studio,然后当前版本的dll(1.3.xx)正在运行。
Application .net Framework: 4.5 Visual Studio: 2012 应用.net Framework:4.5 Visual Studio:2012
Application creates manifest(application.exe.manifest)
through mage.exe
. 应用
manifest(application.exe.manifest)
通过mage.exe
创建manifest(application.exe.manifest)
。
Question: First, Why my application requires the 'run as administrator' privilege for new dll(1.3.xx). 问题:首先,为什么我的应用程序要求新dll(1.3.xx)具有“以管理员身份运行”特权。 Second, How to fix it.
第二,如何解决。
<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>
只需将其更改为<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
,我们也不知道您的.dll代码/文件,因此如果您未向我们提供有关此问题的足够信息,我们将无济于事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.