每当我运行我的应用程序(从安装程序)创建安装程序后,我都会收到程序兼容性助手消息。为了解决这个问题,我在清单文件中添加了以下代码。但我仍然遇到同样的问题。我在我的 2 个应用程序中遇到了这个问题,一个在 vs2010 中,另一个在 VS2005 中。下面的代码修复了 VS2010 应用程序中的问题。但是对于其他应用程序,问题仍然存在。
<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>
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
谁能帮我解决上述问题
问候,
维迪亚