简体   繁体   中英

How to run C# application EXE with normal user account? I don't want to provide Admin user name and password when UAC is on

I am working on the C# application. I am logged in to my machine with normal user account who don't have admin rights and UAC is set to highest level (Always notify me). When I try to run the application it ask me admin user name and password.I don't want to turn off the UAC. I have changed manifest file value to

<requestedExecutionLevel  level="asInvoker" uiAccess="false" />

or

  <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

But that din't help me. How can I run my application without full admin rights user? Any help on this is appreciated.

Thanks: Mayuresh

从项目 - >项目属性和应用程序选项卡,只需检查您的app.manifest文件是否在Icon and Manifest字段下被引用,因为它也可以嵌入。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM