PDA

View Full Version : Application with admin privileges



kibic1987
11th March 2013, 13:11
Hello,
I need your help with a following problem. My GUI's program:
* must start with admin privileges,
* must start automatically in Windows 7.

To date, my application has added to windows autostart, but when I add a manifest (CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST) to start app with admin privileges it not work.
I tried start app as windows service or windows tasks but this doesn't help. I also tried rewrite application on QtService and I has exactly the same effect.

Any ideas?


Kind regards

ChrisW67
12th March 2013, 01:30
You probably cannot launch an application marked as requiring UAC escalation ("requireAdministator") from a non-interactive environment simply because it cannot invoke the UAC prompt. A service should work: I guess you'd establish a user to run the service as, with appropriate permissions to do what the service needs, and set the service to "asInvoker".