How to open Administrator mode?
I want to open Administrator mode automatically after installing my application.
And also i want to add Font automatically into Client's PC when installing my application开发者_如何转开发.
if you need to configure your .NET application to always run in administrator mode after it has been installed, have a look at this:
Run .NET Programs as Administrator on Vista or Windows 7
this only applies to Vista and Windows 7 and Win Server 2008 because in Windows XP if current user is administrator, application already runs in admin mode.
You need to add an application manifest requesting admin priviliges. This begs the question of why it needs admin access as this is normally indicative of an incorrectly designed application.
精彩评论