I'm writing an start up application on windows. My app requires administrator privileges. So I request it by UAC promt. But when the user reset's the pc the UAC yes/no pops up to screen. I don't want to turn off the UAC. I think I can register my application as always administrator by regedit. Where is this key? thanks
We can create a shortcut for this application with elevated privileges.
The user has to elevate via the UAC consent dialog every time the program starts. There is no way around that. The registry setting that you are hoping for does not exist. If it did, that would defeat the purpose of UAC.
You should arrange that you application does not require admin rights if at all possible. Or move the parts of the application that do require admin rights into a separate process that is only started when needed.
Another possibility would be to put the part of your application that requires admin rights into a service, and run a standard user application on the interactive desktop at logon. You can then use an IPC method of your choice to communicate between the two processes.
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.