Possible Duplicate:
How to force my .NET App to run as administrator on Windows 7?
My application is based on Windows-Thread. So it must run as a administrator privileged, To run the application every user have to do right click and choose “run as administrator” option.
But i don’t want to do that, is there any way to change the setup project so that when application installed on windows-machine it sets it privileged with run as administrator and every time when users run it on his local machine , it permanently with run as administrator option.
System: XP, Win-7
You can add/modify the manifest
EDIT
See this question and answer to see how to do this for Windows XP: How to run another app as administrator on Windows XP
EDIT
For ClickOnce you could use a trick as mentioned in this blogpost by starting a second process as admin.