0
Reply

How to make .exe file programmatically set to run as admin always in vista?

Iftekher Islam

Iftekher Islam

Aug 9 2010 2:58 AM
3.3k
I have written a winform application in C#. When I run the program for some functionality it required admin permission. After Installation If I set the .exe file to run as admin manually (by clicking right mouse button on .exe file) then my program run perfectly.

Now I need user not to set the run as admin property after installation by clicking right mouse button. I need to set this programaticaly somewhere in the code that user no need to bother about this. This specific problem is only arise for Windows Vista. Can anyone help me out?