пятница, 4 февраля 2011 г.

Require for Administrative privileges C# Windows 7

Sometimes it's necessary to ask for Administrative privileges.

Auto It

Add #RequireAdmin in the begining of the Script.
It works! 

C#

1. Add manifest to project:
------- 

2. Then edit manifest file. The Execution Level should be changed to

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
3. Change manifest in Project properties.
 4. Compile the Project.


Комментариев нет:

Отправить комментарий