有没有办法在配置文件中添加设置,以便该应用程序始终以管理员身份启动? 非常感谢。
不是来自配置文件,而是来自.manifest。
http://blogs.msdn.com/b/nikhiln/archive/2007/04/19/embed-a-manifest-to-make-an-application-elevate-in-vista.aspx