【发布时间】: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