Win C#: Run app as administrator without UAC prompt

Posted by paja on Stack Overflow See other posts from Stack Overflow or by paja
Published on 2010-03-21T20:41:57Z Indexed on 2010/03/21 20:51 UTC
Read the original article Hit count: 853

Filed under:
|
|
|

Hello,

I need one of my .exe to always run as administrator without UAC prompt. My program will be installed with setup, which will have for one time admin rights, and I need to perform such step in this setup that my exe will be always executed as admin without UAC prompt.

I've found 2 solutions so far: 1) Use custom service, which will elevate the program for me. 2) Use tash scheduler: http://www.howtogeek.com/howto/windows-vista/create-administrator-mode-shortcuts-without-uac-prompts-in-windows-vista/

Is there any other solution? Some manifest probably?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows