Results 1 to 2 of 2

Thread: Application with admin privileges

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Application with admin privileges

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Application with admin privileges

    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".

Similar Threads

  1. Folder in admin account
    By mugi in forum Qt Programming
    Replies: 5
    Last Post: 13th September 2012, 10:52
  2. Escalating Privileges
    By manekineko in forum Qt Programming
    Replies: 7
    Last Post: 20th November 2009, 00:54
  3. Running an application with root privileges at Linux
    By prykHetQuo in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2009, 12:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.