【问题标题】:Winforms Deployment Project running only with Administrator priviliges仅以管理员权限运行的 Winforms 部署项目
【发布时间】:2017-06-06 13:10:45
【问题描述】:

我为我的 C# WinForms 应用程序创建了一个部署项目。安装此部署项目的 exe 后,我只能以管理员身份运行它。如果没有“以管理员身份运行”,我该如何完成这项工作?

【问题讨论】:

  • 您是否尝试以管理员身份运行 setup.exe?或者 setup.exe 不是管理员身份?或者 finalinstalledexecutable.exe 作为管理员?或者 finalinstalledexecutable.exe 不是管理员?我不清楚你的问题
  • 我可以使用“setup.exe”安装应用程序。但是,安装后,我只能在以管理员身份运行该应用程序时才能运行该应用程序。我也想让这个应用程序在没有管理员的情况下运行。
  • finalinstalledexecutable.exe 的名称是什么?您是否使用清单强制以管理员身份运行 (stackoverflow.com/questions/2818179/…)?
  • 我已经设置为<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
  • 这迫使它以管理员身份运行。你应该删除它。

标签: c# winforms visual-studio-2013 setup-project setup-deployment


【解决方案1】:

从清单文件中删除 <requestedExecutionLevel level="requireAdministrator" uiAccess="true" />

如果这没有帮助,请尝试 Manifest View - 可从 https://weblogs.asp.net/kennykerr/manifest-view-1-0 获得。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-24
    • 2021-01-03
    • 1970-01-01
    • 2014-05-18
    • 2012-11-07
    • 2011-01-17
    • 2011-01-17
    • 2015-11-22
    相关资源
    最近更新 更多