窗口7中的兼容性辅助问题

时间:2012-04-25 07:57:13

标签: c# winforms windows-7

每当我运行我的应用程序(从安装程序)创建安装程序后,我都会收到程序兼容性助手消息。要解决此问题,我在清单文件中添加了以下代码。但我仍然遇到同样的问题。我在我的两个应用程序中面临这个问题,一个在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>

任何人都可以帮我解决上述问题

此致

维蒂娅

0 个答案:

没有答案
相关问题